Skip to main content

OneContext CLI (onecontext-ai on PyPI)

OneContext CLI helps you capture, search, and share AI coding session context across tools.

Links

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, or pip
  • 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:

  1. Repair and update: onecontext doctor --fix-upgrade && onecontext update
  2. Rebuild wrapper links if needed: npm rebuild onecontext-ai
  3. Check that onecontext is 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.

Release files for onecontext-ai 0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for onecontext-ai 0.9.3
File Interpreter ABI Platform
onecontext_ai-0.9.3-py3-none-any.whl Python 3 none any Details

Release files / onecontext_ai-0.9.3-py3-none-any.whl

Download URL onecontext_ai-0.9.3-py3-none-any.whl
Size 621.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c932cdb729414536ee062c78b4a2f98caf2b951bcca64f9f46b4197d9002ed8b
BLAKE2b-256 checksum
How to use checksums
b53460372492a5213a6c49912b8729aa1926e7980e6df29642e96f4bcaceba64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.9.3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page