### Install and Verify OneContext CLI Source: https://context7.com/theagentcontextlab/onecontext/llms.txt Installs the OneContext CLI globally using npm and verifies the installation by checking the version. This command ensures the tool is set up correctly for use. ```bash # Install globally npm i -g onecontext-ai # Verify installation onecontext version # Expected output: # onecontext-ai v0.8.3 ``` -------------------------------- ### Install OneContext CLI (npm) Source: https://github.com/theagentcontextlab/onecontext/blob/main/README.md Installs the OneContext command-line interface globally using npm. This command also automatically installs the latest compatible Python package for 'onecontext-ai' using the most efficient available Python package manager. ```bash npm i -g onecontext-ai ``` -------------------------------- ### Troubleshoot OneContext CLI Source: https://github.com/theagentcontextlab/onecontext/blob/main/README.md Provides commands to troubleshoot issues where OneContext commands are not found after installation. This involves repairing upgrade links, updating the package, and verifying the PATH. ```bash # Repair and update onecontext doctor --fix-upgrade && onecontext update # Rebuild wrapper links if needed npm rebuild onecontext-ai # Check PATH which onecontext ``` -------------------------------- ### Create and Manage Contexts in OneContext UI Source: https://context7.com/theagentcontextlab/onecontext/llms.txt Describes the steps to create a new context and start recording agent sessions within the OneContext graphical user interface. It outlines how to add contexts, create sessions, and view session summaries. ```bash # 1. Launch OneContext onecontext # 2. In the UI: # - Click "Add Context" and enter a context name # - Click "New Session" to create a session with a working path # - Start working - session summary appears automatically on the left # - Create multiple sessions under the same context as needed # 3. View context details: # - Hover over context name for quick summary # - Double-click context name for full details ``` -------------------------------- ### Launch and Manage OneContext CLI Source: https://context7.com/theagentcontextlab/onecontext/llms.txt Provides commands to launch the OneContext application, check its version, update the Python package, repair installation issues, and locate the executable. These commands are essential for basic operation and maintenance. ```bash # Start OneContext onecontext # Alternative commands (all equivalent) onecontext-ai oc # Show help and available commands onecontext --help # Check current version onecontext version # or oc version # Update to latest Python package onecontext update # Repair upgrade routing if broken onecontext doctor --fix-upgrade onecontext update # Rebuild npm wrapper links if stale npm rebuild onecontext-ai # Check installation path which onecontext ``` -------------------------------- ### OneContext CLI Commands Source: https://github.com/theagentcontextlab/onecontext/blob/main/README.md Demonstrates various commands available through the OneContext CLI, including checking the version, displaying help information, and using short aliases. ```bash # Check version onecontext version # Show help onecontext --help # Short alias oc version ``` -------------------------------- ### Run OneContext CLI Source: https://github.com/theagentcontextlab/onecontext/blob/main/README.md Executes the OneContext application. This command is a proxy to the underlying Python CLI and can be used to manage agent contexts. ```bash onecontext ``` -------------------------------- ### Share Agent Context via OneContext UI Source: https://context7.com/theagentcontextlab/onecontext/llms.txt Explains how to share your agent context using the OneContext UI, generating a shareable link that allows others to view, query, and import the context. This facilitates team collaboration and context transfer. ```bash # In the OneContext UI: # 1. Click "Share" to generate a shareable link # 2. Copy the link and share it with anyone # 3. Recipients can: # - Click the link to open and query the context # - Ask questions about the context directly in Slack # - Import the shared session locally ``` -------------------------------- ### Update OneContext Python Package Source: https://github.com/theagentcontextlab/onecontext/blob/main/README.md Updates the OneContext Python package to the latest version using the recommended unified upgrade command. Includes a command to fix upgrade routing issues if the standard update fails. ```bash # Recommended update onecontext update # Repair and retry update onecontext doctor --fix-upgrade onecontext update ``` -------------------------------- ### Load Shared Contexts in OneContext Source: https://context7.com/theagentcontextlab/onecontext/llms.txt Details the process of importing shared contexts into OneContext, enabling users to continue work from the same point. This includes opening shared links, querying contexts, and resuming sessions locally. ```bash # 1. Click a shared link to open the context # 2. Ask questions about the received context in chat # 3. Click to import the session locally # 4. Return to OneContext to find the imported session # 5. Continue working by creating new sessions under it ``` -------------------------------- ### Import External Sessions into OneContext Source: https://context7.com/theagentcontextlab/onecontext/llms.txt Outlines the process for importing external agent sessions, such as those from OpenAI Codex or Anthropic Claude, into OneContext via the UI. This allows for seamless continuation of work across different AI platforms. ```bash # Import external sessions via the UI # Supports importing from: # - OpenAI Codex sessions # - Anthropic Claude sessions # - Other compatible agent formats ``` -------------------------------- ### Manage Sessions in OneContext Source: https://context7.com/theagentcontextlab/onecontext/llms.txt Describes how to archive and resume agent sessions within OneContext. Archiving closes a session, while resuming allows users to pick up work from where they left off by selecting and restoring a previous session. ```bash # Archive a session: # - Click "×" to close terminal or session # Resume a session: # - Click "+" then select "Resume Session", or # - Double-click the context name # - Select the session and click "Resume" # - Session reappears in original position ``` -------------------------------- ### Archive and Restore Contexts in OneContext Source: https://context7.com/theagentcontextlab/onecontext/llms.txt Explains the procedure for archiving and restoring entire contexts in OneContext for long-term storage. This involves archiving via the UI and restoring by enabling 'Show Archived Agents' in the 'Config' tab. ```bash # Archive a context: # - Click "×" to archive the entire context # Restore a context: # 1. Go to "Config" tab # 2. Enable "Show Archived Agents" # 3. Return to "Contexts" tab to view archived contexts # 4. Click "Restore Agent" # 5. Context is restored - continue adding/resuming sessions or share again ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.