OneContext is an Agent Self-Managed Context layer, it gives your team a unified context for ALL AI Agents, so anyone / any agent can pick up from the same context.
- Run your Agents with OneContext and it records your Agents trajectory.
- Share Agent Context so Anyone can Talk to it on Slack.
- Load the Context to Agents, so Anyone can Continue from the Same Point.
Install:
npm i -g onecontext-ai
This will automatically install the latest onecontext-ai Python package using the best available Python package manager (uv > pipx > pip3 > pip).
Prerequisites
- Node.js >= 16
- Python 3.8+ with one of:
uv,pipx,pip3, orpip
Run:
onecontext
After installation, the following commands are available:
onecontext-ai <command> [args...]
onecontext <command> [args...]
oc <command> [args...]
All three commands are equivalent and proxy to the underlying Python CLI.
Examples
# Check version
onecontext version
# Show help
onecontext --help
# Short alias
oc version
The npm wrapper installs the latest onecontext on npm install.
For normal users, use the unified upgrade command:
# Recommended
onecontext update
If upgrade routing is broken, repair once and retry:
onecontext doctor --fix-upgrade
onecontext update
Use npm rebuild onecontext-ai only when the npm wrapper links/cached paths are stale.
If the commands aren't found after installation:
- Repair and update:
onecontext doctor --fix-upgrade && onecontext update - Rebuild wrapper links if needed:
npm rebuild onecontext-ai - Check that
onecontextis on your PATH:which onecontext
Feel free to raise an issue ticket for any problems you encounter, or for any features or improvements you’d like to see in the future 🙂
07-02-2026: First Release