OpenContext

0xranxMIT更新放缓

给 AI 编程助手用的个人上下文库,复用 Codex、Claude、OpenCode 等现有 CLI,把项目知识捕获、检索并在不同 agent 和仓库间复用。

A personal context store for AI agents and assistants—reuse your existing coding agent CLI (Codex/Claude/OpenCode) with built‑in Skills/tools and a desktop GUI to capture, search, and reuse project knowledge across agents and repos.

desktop-v0.2.7发布于 2026-01-30 14:49 UTC1,279star85fork同步于 2026-11-07 07:33 UTC

怎么上手

由 README 提炼,执行前请确认
npm install -g @aicontextlab/cli
cd your-project && oc init
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

给 AI 编码助手加持久记忆的本地知识库,复用你已有的 Codex/Claude/OpenCode CLI

给 AI 编程助手用的个人上下文库,复用 Codex、Claude、OpenCode 等现有 CLI,把项目知识捕获、检索并在不同 agent 和仓库间复用。

核心能力

  • 用 oc CLI 管理全局 contexts 库,支持文件夹、文档、manifest 与搜索
  • 通过 MCP Server 让 Cursor/Claude Code/Codex 直接调用知识库工具
  • oc init 生成用户级 Skills 与斜杠命令,一条命令加载、搜索、创建、迭代上下文
  • 提供桌面 App 与本地 Web UI 浏览编辑上下文
  • 复用已有编码 agent CLI,无需额外 agent 订阅

容易踩的坑

需要先安装 Node/npm 环境才能全局装 CLI;oc init 会写入各 agent 的用户级配置目录(如 /.cursor、/.claude、~/.codex),非交互安装需用 --tools 或 --no-* 参数指定;桌面版需从 Releases 单独下载,不走 npm

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本desktop-v0.2.7
  1. desktop-v0.2.7OpenContext Desktop v0.2.7最新正式版2026-01-30 · 2026-01-30 14:49 UTC

    What's Changed

    Other Changes

    Full Changelog: https://github.com/0xranx/OpenContext/compare/desktop-v0.2.6...desktop-v0.2.7

  2. desktop-v0.2.6OpenContext Desktop v0.2.62026-01-25 · 2026-01-25 15:24 UTC
    查看更新说明

    What's Changed

    OpenContext now lets you reuse the coding agent CLI you already use (Codex/Claude/OpenCode) and wraps it with a ready‑to‑use GUI + built‑in Skills/tools.

    No new agent subscriptions—just plug in your existing CLI and get a full agent experience: multi‑session chat, model selection, tool outputs, and permission prompts.

    Why it matters

    Bring your own agent — no extra agent fees Agent‑ready GUI — faster, clearer workflows Built‑in Skills/tools — load/search/create/iterate with one command

    Related PR

    Full Changelog: https://github.com/0xranx/OpenContext/compare/desktop-v0.2.5...desktop-v0.2.6

  3. desktop-v0.2.52026-01-17 · 2026-01-17 11:32 UTC
    查看更新说明

    What's Changed

    Other Changes

    Full Changelog: https://github.com/0xranx/OpenContext/compare/desktop-v0.2.4...desktop-v0.2.5

  4. desktop-v0.2.42026-01-16 · 2026-01-16 14:40 UTC
    查看更新说明
    • Added dark mode configuration in Tailwind CSS.
    • Enhanced localization for theme settings in English and Chinese.
  5. desktop-v0.2.32026-01-05 · 2026-01-05 07:57 UTC

    这个版本没有写更新说明。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    The Problem

    When you use an AI assistant to build things, context gets lost (across days, repos, chats). You end up re-explaining background, repeating decisions, and sometimes the assistant continues with the wrong assumptions. Most tools stop at storage and don't plug into the coding agent you already use.

    The Solution

    OpenContext is a lightweight personal context / knowledge store for AI assistants (Agents) and coding tools like Cursor / Claude Code / Codex. It reuses your existing coding agent CLI (Codex/Claude/OpenCode) while adding a GUI plus built-in Skills/tools, so your agent can "load history first, then act; ship, then persist".

    Skills-first support: oc init generates user-level skills (Cursor/Claude Code/Codex) plus slash commands (Cursor/Claude Code), so agents can load, search, create, and iterate your context with one command.

    Before OpenContextAfter OpenContext
    📂 Hard to share context across repos/sessions✅ Global context library works across all projects
    🤷 Your ideas can't be quickly perceived by Agent✅ Agent loads your background & decisions automatically
    🔒 Existing knowledge can't be operated by Coding Agent✅ Agent can directly read/write your knowledge base

    What's Included

    • oc CLI — manage a global contexts/ library (folders/docs, manifests, search)
    • MCP Server — so Cursor/Claude Code/Codex/Agents can call OpenContext as tools
    • Skills + Slash Commands — user-level skills for Cursor/Claude Code/Codex and slash commands for Cursor/Claude Code (generated by oc init)
    • Agent-ready Knowledge Layer — reuse your existing coding agent CLI (Codex/Claude/OpenCode) with built-in skills/tools and GUI
    • Desktop App — manage/search/edit contexts with a native UI
    • Web UI — browse/edit contexts locally (no install required)

    Why OpenContext for Builders

    OpenContext's knowledge management Agent can be the coding agent you already use (Codex/Claude/OpenCode). You don't pay for a separate agent — you bring your own CLI and get a ready-to-use experience: a GUI for context management plus built-in Skills and tools that let the agent read, search, create, and iterate on your knowledge.

    Quick Start

    Install CLI

    npm install -g @aicontextlab/cli
    

    Choose Your Path

    PathBest ForGet Started
    🖥️ Desktop AppVisual users who want a native UIDownload from Releases
    ⌨️ CLI + ToolsDevelopers using Cursor/Claude Code/Codex/AI agentsnpm install -g @aicontextlab/cli && oc init
    🔧 CLI OnlyPower users, automationnpm install -g @aicontextlab/cli

    OpenContext works with the coding agent CLI you already have — it adds a GUI plus built-in Skills/tools instead of replacing your agent.

    30-Second Setup (CLI + Cursor/Claude Code/Codex)

    # 1. Install
    npm install -g @aicontextlab/cli
    
    # 2. Initialize (prompts for tool setup; defaults to all)
    cd your-project
    oc init
    
    # 3. Use slash commands (Cursor + Claude Code)
    #    /opencontext-context  — load background before working
    #    /opencontext-search   — find relevant docs
    #    /opencontext-create   — create a new doc
    #    /opencontext-iterate  — persist what you learned
    #    Tip: non-interactive installs can use --tools cursor,claude,codex or --no-claude/--no-cursor/--no-codex
    #
    #    Installed by oc init:
    #    - Cursor: ~/.cursor/commands
    #    - Claude Code: ~/.claude/commands (or $CLAUDE_CONFIG_DIR/commands)
    #    Skills (wrapped from slash commands):
    #    - Cursor: ~/.cursor/skills/opencontext-*/SKILL.md
    #    - Claude Code: ~/.claude/skills/opencontext-*/SKILL.md (or $CLAUDE_CONFIG_DIR/skills)
    #    - Codex: ~/.codex/skills/opencontext-*/SKILL.md (or $CODEX_HOME/skills)
    #
    # 4. MCP config is user-level (Cursor/Claude Code/Codex)
    #    - Cursor: ~/.cursor/mcp.json
    #    - Claude Code: ~/.claude/mcp.json (or $CLAUDE_CONFIG_DIR/mcp.json)
    #    - Codex: ~/.codex/mcp.json (or $CODEX_HOME/mcp.json)
    

    📖 For detailed usage guide, search configuration, and FAQ, visit the Website.



    FAQ (Frequently Asked Questions)

    What is OpenContext?

    OpenContext is a lightweight personal context / knowledge store for AI assistants and coding tools like Cursor / Claude Code / Codex. It gives your AI agent a persistent memory so you can stop repeating yourself and start building smarter.

    How does OpenContext work with my existing coding agent?

    OpenContext reuses your existing coding agent CLI (Codex/Claude/OpenCode) while adding a GUI plus built-in Skills/tools. You don't pay for a separate agent subscription — you bring your own CLI and get a ready-to-use experience.

    What are the core components?

    ComponentFunction
    oc CLIManage global contexts/ library (folders/docs, manifests, search)
    MCP ServerCursor/Claude Code/Codex/Agents call OpenContext as tools
    Skills + Slash CommandsUser-level skills for Cursor/Claude Code/Codex + slash commands for Cursor/Claude Code
    Desktop AppManage/search/edit contexts with a native UI
    Web UIBrowse/edit contexts locally (no install required)

    What coding agents are supported?

    AgentConfig Location
    Cursor~/.cursor/mcp.json
    Claude Code~/.claude/mcp.json
    Codex~/.codex/mcp.json
    OpenCode~/.config/opencode/

    What are the key benefits?

    Before OpenContextAfter OpenContext
    📂 Hard to share context across repos/sessions✅ Global context library works across all projects
    🤷 Your ideas can't be quickly perceived by Agent✅ Agent loads your background & decisions automatically
    🔒 Existing knowledge can't be operated by Coding Agent✅ Agent can directly read/write your knowledge base

    Is OpenContext free and open source?

    Yes! OpenContext is free and open source. Check the repository for license details.

    How do I get started?

    npm install -g @aicontextlab/cli
    oc init
    

    This generates user-level skills and slash commands for your coding agent.

    Where can I get help?

    CLI Commands (Quick Reference)

    Run oc <cmd> --help for details.

    CommandWhat it does
    oc initInitialize OpenContext + user-level tool integrations
    oc folder lsList folders
    oc folder create <path> -d "desc"Create a folder
    oc doc create <folder> <name>.md -d "desc"Create a document
    oc doc ls <folder>List documents
    oc context manifest <folder>Generate file list for AI to read
    oc search "query"Search documents
    oc mcpStart MCP server for MCP clients
    oc uiStart local Web UI

    📖 Full command reference available on the Website.


    Development

    # Clone & install
    git clone https://github.com/0xranx/OpenContext.git
    cd OpenContext && npm install
    
    # Desktop app
    npm run tauri:dev    # development
    npm run tauri:build  # production build
    
    # Web UI
    npm run ui:dev       # development
    npm run ui:build     # production build
    

    License

    MIT © OpenContext