Skip to main content

The context API for AI agents

Project description

UltraContext

Same context. Everywhere.

Start on Claude Code. Continue on Codex.
Open source, realtime and invisible context infrastructure for the ones shipping at inference speed.

Documentation · API Reference · Changelog

npm version PyPI version license Visit ultracontext.ai


ultracontext-gif

What Claude Code knows, Codex doesn't. What your teammate is shipping right now? Your agent has no idea.

UltraContext captures every agent's context in realtime and makes it available to all of them. It's like having a personal context engineer everywhere. Continue a session in a different agent, or just ask what's happeming.

For example:

  • "Codex, grab the last plan Claude Code made and implement it."
  • "What's the team building today?"
  • "What is Alex working on in Codex right now?"

Open source. Framework-agnostic. Customizable via the git-like Context API.

Features

CLI Auto-ingest Claude Code, Codex, and OpenClaw sessions with a terminal dashboard.
MCP Server Share context everywhere. Built into the API, or run standalone via stdio.
Context API Git-like context engineering API. Store, version, and retrieve agent context with zero complexity.

How it works

  1. Start the daemon. It captures all your agents' context in realtime.

  2. Add the MCP server. Any agent gets full awareness of every other agent.

  3. That's it. Ask questions, continue sessions, fork — your context is everywhere.

Install

Requires Node >= 22.

npm install -g ultracontext

Quick Start

ultracontext          # start daemon + open dashboard

That's it. The daemon watches your agents, ingests context in realtime, and the dashboard shows everything.

ultracontext config   # run setup wizard
ultracontext start    # start daemon only
ultracontext stop     # stop daemon
ultracontext status   # check if daemon is running
ultracontext tui      # open dashboard only

Context API

For builders who want to go deeper. Git-like primitives for context engineering.

  • Five methods — Create, get, append, update, delete. That's it.
  • Automatic versioning — Every change creates a new version. Full history out of the box.
  • Time-travel — Jump to any point in your context history.
  • Framework-agnostic — Works with any LLM framework. No vendor lock-in.

Use the API standalone to build your own agents, or extend existing ones in UltraContext.

SDK Install Source
JavaScript/TypeScript npm install ultracontext apps/js-sdk
Python pip install ultracontext apps/python-sdk

JavaScript/TypeScript

npm install ultracontext
import { UltraContext } from 'ultracontext';

const uc = new UltraContext({ apiKey: 'uc_live_...' });

const ctx = await uc.create();
await uc.append(ctx.id, { role: 'user', content: 'Hello!' });

// use with any LLM framework
const response = await generateText({ model, messages: ctx.data });

Python

pip install ultracontext
from ultracontext import UltraContext

uc = UltraContext(api_key="uc_live_...")

ctx = uc.create()
uc.append(ctx["id"], {"role": "user", "content": "Hello!"})

# use with any LLM framework
response = generate_text(model=model, messages=uc.get(ctx["id"])["data"])

📚 Context API Guides

Store & Retrieve · Edit Contexts · Fork & Clone · View History

Star History

Star History Chart

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ultracontext-1.4.11.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ultracontext-1.4.11-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file ultracontext-1.4.11.tar.gz.

File metadata

  • Download URL: ultracontext-1.4.11.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ultracontext-1.4.11.tar.gz
Algorithm Hash digest
SHA256 ad846f8414f1adbc3423c59bb431f340e635f8fb249d0aa83ace7e273cd34c91
MD5 6b7f6d9ffb359f26ffa21fd4a5bee8a4
BLAKE2b-256 8be4c5d1daf66140c13aa111e7a175dd2dcb1a6b7757fa55f9ac1bcf45c56fc4

See more details on using hashes here.

File details

Details for the file ultracontext-1.4.11-py3-none-any.whl.

File metadata

  • Download URL: ultracontext-1.4.11-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ultracontext-1.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a5c2f00281091d76c7f77f28dff293323a1e8b307c29b3b0ad3ccbebc9400e
MD5 60c964f9792a40ac0d65a37c82898134
BLAKE2b-256 eaa9d8bbbda4aace8637d99802c05636d38be0d275857b67c96941bfb26f25a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page