OneContext CLI for capturing, searching, and sharing AI coding session context
Project description
OneContext CLI (onecontext-ai on PyPI)
OneContext CLI helps you capture, search, and share AI coding session context across tools.
Links
- GitHub repository: https://github.com/LastPieceAI/OneContext
- Issues: https://github.com/LastPieceAI/OneContext/issues
Installation
Python:
pip install onecontext-ai
npm wrapper:
npm install -g onecontext-ai
After install, run onecontext to start.
Prerequisites
- Python >=3.11 with one of:
uv,pipx,pip3, orpip - Node.js >= 16
What Gets Installed and Configured
On first launch (onecontext), OneContext sets up local integrations so the CLI works across agents:
- Installs OneContext skills into Claude/Codex skill locations so you can use built-in workflows.
- Installs Claude/Codex hooks used by cross-agent session workflows (including import-history session management).
OneContext runs cloud LLM features using our own securely managed service tokens. You NEVER need to provide personal API keys — and your own provider tokens are NEVER used for these workflows.
Usage
After installation, the following commands are available:
onecontext <command> [args...]
aline <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
aline version
oc version
Updating the Python Package
The npm wrapper installs the latest onecontext-ai 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.
Uninstall
Recommended app-level uninstall:
onecontext uninstall
If installed via npm wrapper, also remove wrapper package:
npm uninstall -g onecontext-ai
Troubleshooting
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
Naming Note
- PyPI package name is
onecontext-ai. - npm package uses the same branding:
onecontext-ai. - All commands proxy to the same CLI app (
onecontext,aline,oc).
The project started as Aline and later moved to OneContext branding.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onecontext_ai-0.9.3-py3-none-any.whl.
File metadata
- Download URL: onecontext_ai-0.9.3-py3-none-any.whl
- Upload date:
- Size: 621.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c932cdb729414536ee062c78b4a2f98caf2b951bcca64f9f46b4197d9002ed8b
|
|
| MD5 |
09f109a079082f36dd1a7e0d73c116bc
|
|
| BLAKE2b-256 |
b53460372492a5213a6c49912b8729aa1926e7980e6df29642e96f4bcaceba64
|