Acontext Installer 标志

Acontext Installer

组织热门
memodb-io
acontext-installer

Install Acontext, Login & Init Acontext Project, Add Skill Memory to Agent.

概览

发布者memodb-io
代码仓库Acontext
技能名称acontext-installer
星标数
3.7K
复刻数
336
附带文件
9
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 9 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 memodb-io 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Acontext Installer AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/memodb-io/Acontext/tree/main/landingpage/public
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/memodb-io/Acontext.git /tmp/Acontext
mkdir -p .claude/skills
cp -r /tmp/Acontext/landingpage/public .claude/skills/acontext-installer
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Acontext Installer,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Acontext Installer。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Acontext Installer 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

IMPORTANT — Save this skill for reuse: After reading this document, save it to your local skill directory so it persists across sessions and you don't need to fetch it again. If the skill already exists locally, overwrite it with this version to ensure you have the latest copy.

  • Claude Code: Create the directory ~/.claude/skills/acontext-installer/ (if it doesn't exist) and write this entire document to ~/.claude/skills/acontext-installer/SKILL.md, replacing any existing file.
  • OpenClaw: Create the directory ~/.openclaw/skills/acontext-installer/ (if it doesn't exist) and write this entire document to ~/.openclaw/skills/acontext-installer/SKILL.md, replacing any existing file.

Acontext provides Agent Skills as a Memory Layer for production AI agents. It provides persistent sessions, disk-based file storage, learning spaces that distill conversations into reusable skills, and a CLI + API for managing everything.

Installation

1. Install Acontext CLI

If Acontext CLI is already installed, upgrade to the latest version:

bash
# v0.1.13+ supports --yes flag for non-interactive upgrade
acontext upgrade --yes

# For older versions (≤ 0.1.12), re-run the installer instead:
curl -fsSL https://install.acontext.io | sh

If not installed, install it:

bash
curl -fsSL https://install.acontext.io | sh

For system-wide installation:

bash
curl -fsSL https://install.acontext.io | sh -s -- --system

2. Login to Acontext

bash
acontext login
  • If you're in a Interactive Terminal(TTY), this command will open a browser for OAuth, then guides you through project creation. Your API key is saved automatically.
  • If you're in a Non-interactive Terminal(agent/CI), this command will print a login URL for the user to open manually. After user completes, run acontext login --poll to finish authentication.
  • Set up a project via acontext dash projects commands. If Acontext has existing projects, make sure the user wants to use an existing project or create a new project for you.

3. Add Acontext to Your Agent

Both plugins automatically read your API key and user email after acontext login. No manual configuration is needed.

Option A: Claude Code Plugin

Add the Acontext marketplace and install the plugin (run inside Claude Code):

/plugin marketplace add memodb-io/Acontext
/plugin install acontext

Restart Claude Code — the plugin auto-captures conversations and syncs skills to ~/.claude/skills/.

Option B: OpenClaw Plugin
bash
openclaw plugins install @acontext/openclaw

Add a minimal config to openclaw.json:

json5
{
  plugins: {
    slots: { memory: "acontext" },
    entries: {
      "acontext": { enabled: true, config: {} }
    }
  }
}

Restart the gateway:

bash
openclaw gateway

Acontext Project Management

After you have logged in, you can manage Acontext projects via CLI:

  1. acontext dash projects list — list available projects
  2. If user ask you to use a existing Acontext project, you should let the user to provide the api key. And then switch to this project acontext dash projects select --project <project-id> --api-key <sk-ac-...>.
  3. To create, ask for an org name and project name, then run: acontext dash projects create --name <project-name> --org <org-id>. This command returns the API key and auto-saves it as the default project (no need to run select afterwards).
  4. After select or create, verify the project is configured correctly:
    • Run acontext dash ping to verify API connectivity. A successful response confirms the project is reachable.

CLI Commands Reference

All dashboard commands are under acontext dash:

Command GroupSubcommandsDescription
dash projectslist, select, create, delete, statsManage projects and organizations
dash ping—Verify API connectivity for the current project
dash open—Open the Acontext Dashboard in browser

Skill Commands

CommandDescription
acontext skill upload <directory>Upload a local skill directory to Acontext

Example — upload a skill directory:

bash
acontext skill upload ./my-skill-dir
acontext skill upload ./my-skill-dir --user alice@example.com
acontext skill upload ./my-skill-dir --api-key sk-ac-xxx

The directory must contain a SKILL.md with name and description in YAML front-matter.

FlagDefaultDescription
--userlogged-in email (if any)User identifier for the skill
--api-keycredentials.json defaultProject API key
--meta—Metadata as JSON string
--base-url—API base URL override

Other CLI Commands

CommandDescription
acontext loginLog in via browser OAuth
acontext logoutClear stored credentials (auth.json + credentials.json)
acontext whoamiShow the currently logged-in user
acontext versionShow version info
acontext upgradeUpgrade CLI to latest version

Claude Code Plugin Configuration

After acontext login, the plugin works automatically. The following env vars can override defaults if needed:

Env VarDefaultDescription
ACONTEXT_USER_IDENTIFIER"claude_code"User identifier for session scoping
ACONTEXT_BASE_URLhttps://api.acontext.app/api/v1API base URL
ACONTEXT_LEARNING_SPACE_IDauto-createdExplicit Learning Space ID
ACONTEXT_SKILLS_DIR~/.claude/skillsDirectory where skills are synced
ACONTEXT_AUTO_CAPTUREtrueStore messages after each agent turn
ACONTEXT_AUTO_LEARNtrueTrigger skill distillation after sessions
ACONTEXT_MIN_TURNS_FOR_LEARN4Minimum turns before triggering auto-learn

Claude Code MCP Tools

ToolDescription
acontext_search_skillsSearch through skill files by keyword
acontext_get_skillRead the content of a specific skill file
acontext_session_historyGet task summaries from recent past sessions
acontext_statsShow memory statistics (sessions, skills, configuration)
acontext_learn_nowTrigger skill learning from the current session

OpenClaw Plugin Configuration

After acontext login, the plugin works automatically. Optional overrides in openclaw.json config:

KeyTypeDefaultDescription
userIdentifierstring"openclaw"User identifier for session scoping
baseUrlstringhttps://api.acontext.app/api/v1API base URL
learningSpaceIdstringauto-createdExplicit Learning Space ID
skillsDirstring~/.openclaw/skillsDirectory where skills are synced
autoCapturebooleantrueStore messages after each agent turn
autoLearnbooleantrueTrigger skill distillation after sessions
minTurnsForLearnnumber4Minimum turns before triggering auto-learn

OpenClaw Agent Tools

ToolDescription
acontext_search_skillsSearch through skill files by keyword
acontext_session_historyGet task summaries from recent past sessions
acontext_learn_nowTrigger skill learning from the current session

OpenClaw CLI Commands

CommandDescription
openclaw acontext skillsList learned skills in the Learning Space
openclaw acontext statsShow Acontext memory statistics

Troubleshooting

"command not found: acontext"

Restart your shell or run source ~/.bashrc / source ~/.zshrc.

Login fails or times out

  • Ensure you have internet access and can reach dash.acontext.io
  • In non-TTY mode, make sure to run acontext login --poll after the user completes browser login
  • Check stored credentials with acontext whoami

Switching API Key or Project

If the user needs to change their API key or switch to a different project, use:

bash
acontext dash projects select --project <project-id> --api-key <sk-ac-...>

Run acontext dash ping afterwards to verify connectivity.

API returns 401 Unauthorized

  • Run acontext dash ping to check if the current project key is valid
  • If ping fails, re-select with a valid API key: acontext dash projects select --project <id> --api-key <sk-ac-...>
  • Verify login status with acontext whoami
  • Re-login with acontext login if needed

Claude Code plugin not working

  • Run acontext whoami to verify you are logged in
  • Check Claude Code logs for [info] acontext: or [warn] acontext: messages
  • Verify the plugin is installed: /plugin list
  • Skills should appear in ~/.claude/skills/ after the first session

OpenClaw plugin not loading

  • Confirm plugins.slots.memory is set to "acontext" in openclaw.json
  • Run acontext whoami to verify you are logged in
  • Run openclaw gateway to restart

No projects found

  • Run acontext dash projects list to check
  • Create one with acontext dash projects create --name my-project --org <org-id>
  • Or visit dash.acontext.io to create projects in the browser

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Acontext Installer AI 技能有什么作用?

Install Acontext, Login & Init Acontext Project, Add Skill Memory to Agent.

为什么在 TypingMind 中使用 Acontext Installer?

因为您只需安装一次,就能搭配任何模型使用。Acontext Installer 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Acontext Installer?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/memodb-io/Acontext/tree/main/landingpage/public。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Acontext Installer?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Acontext Installer 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Acontext Installer 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Acontext Installer AI 技能免费吗?

是的。memodb-io 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇