Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Encrypted credential vault: LLM, service & OAuth keys. 21-tool MCP server for your AI agent.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"apilocker": {
"command": "npx",
"args": [
"-y",
"apilocker",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add apilocker -- npx -y apilocker mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"apilocker": {
"command": "npx",
"args": [
"-y",
"apilocker",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"apilocker": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"apilocker",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 apilocker 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.0.3)于7个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
One vault, three types of credentials. LLM API keys, service API keys, and OAuth credentials — all encrypted, all injectable into your code with a single command.
API Locker replaces the .env file with one encrypted vault. Store your OpenAI key, your Stripe secret, your Google OAuth client — all in one place — and inject them into any command with apilocker run -- npm start. Your raw credentials never touch disk, never live in shell history, never get committed to git.
This is the command-line interface. Website · Dashboard
npm install -g apilocker
Requires Node.js 18 or newer.
# 1. Install the CLI (above)
apilocker register
apilocker run -- npm start
That's it. Your process.env.OPENAI_API_KEY, process.env.STRIPE_SECRET_KEY, process.env.GOOGLE_OAUTH_CLIENT_SECRET — everything you'd normally drop in a .env file — is now injected into the subprocess for exactly the duration of that command. When the command exits, the secrets are gone.
OpenAI, Anthropic, Gemini, Groq, Mistral.
apilocker store --name OPENAI_API_KEY --provider openai --key sk-proj-xxxxx
apilocker run -- node my-ai-app.js
Stripe, Twilio, Resend, ElevenLabs, Cloudflare, GitHub, Clerk, Sentry, PostHog, Cloudinary, Mux, SendGrid, Vercel, Upstash, LemonSqueezy — plus custom for anything else.
apilocker store --name STRIPE_SECRET_KEY --provider stripe --key sk_live_xxxxx
apilocker run -- npm start
Google, GitHub, Slack, Microsoft, Notion, Spotify, Twitter/X, LinkedIn, Discord, Zoom, Dropbox, Salesforce, HubSpot — plus custom OAuth for anything else.
apilocker store --oauth \
--name google-oauth \ --provider google-oauth \ --client-id 856449...apps.googleusercontent.com \ --client-secret GOCSPX-xxxxx \ --scopes "openid email profile"
apilocker run -- node oauth-app.js
| Command | What it does |
|---|---|
apilocker register | Register this device via browser confirmation. No pasted tokens. |
apilocker store | Store a credential. --oauth for multi-field OAuth, otherwise --key. |
apilocker list | List credentials grouped into LLM / Service / OAuth buckets. Filter with --tag, --provider, --category, --search. |
apilocker run -- | Run any command with vault secrets injected as environment variables. |
apilocker get | Print a single secret value to stdout (for scripting). --field for OAuth fields. |
apilocker env | Emit shell-eval-able export statements. eval "$(apilocker env)" to load into current shell. |
apilocker init | Pin specific keys to a project directory via a committable .apilockerrc file. |
apilocker import .env | Migrate an existing .env file into the vault. Pattern-matches provider prefixes and offers to replace the .env with an .apilockerrc. |
apilocker rotate | Replace a credential's value. Scoped tokens keep working; rotation is transparent to consumers. |
apilocker rename | Rename a credential alias. Lossless — existing .apilockerrc files that reference the old name keep working via transparent fallback. |
apilocker pause / resume | Freeze proxy access without deleting. Reveal / run / get / env still work on paused credentials. |
apilocker delete | Permanently delete a credential. |
apilocker devices list / revoke | Manage devices registered to your account. |
apilocker token create/list/pause/resume/delete | Manage scoped access tokens for app/proxy use. |
apilocker activity | View the audit log. Add --follow / -f to stream new events live. |
apilocker doctor | Security health check: stale rotations, unused keys, expiring tokens, local config permissions. |
apilocker update | Check npm for a newer version. |
.apilockerrc filePin a project to a specific set of credentials with a committable config file. apilocker init walks you through creating one:
# .apilockerrc — safe to commit to git, contains only pointers
keys:
After apilocker init, anyone cloning your repo who runs apilocker run -- npm start gets the same env vars — assuming they have access to those aliases in their own vault. It's like a package.json for credentials: the file declares what the project needs, each developer has their own vault.
Unlike most developer tools, apilocker register doesn't want you to paste a secret from the dashboard. Instead:
apilocker registerThis is the RFC 8628 device authorization flow (the same pattern gh, vercel, wrangler, flyctl, and gcloud use). It's strictly safer than pasted tokens because the secret never appears anywhere a human can accidentally leak it.
New users? The same flow handles signup — your first OAuth click with GitHub/Google creates the account automatically. No separate visit to the web portal required.
API Locker exposes a full Model Context Protocol server with 25 tools so Claude Code, Claude Desktop, Cursor, Zed, Continue, and any other MCP-compatible client can read and manage your vault directly.
claude mcp add apilocker -- apilocker mcp
Verify with claude mcp list. You should see apilocker: apilocker mcp - ✓ Connected. The server is available in your next Claude Code session automatically.
The CLI ships with apilocker mcp — a stdio bridge that handles the connection automatically. Configure any MCP client with:
{
"mcpServers": { "apilocker": { "command": "apilocker", "args": ["mcp"] } } }
The bridge reads your master token from ~/.apilocker/config.json automatically. No credentials go in the client config itself.
Print client-specific config with the built-in helper:
apilocker mcp config --client claude-desktop # or claude-code, cursor, continue, zed, generic
Full docs: https://www.apilocker.app/docs/mcp — includes config file locations for each client, troubleshooting, and the full 25-tool catalog.
Visual status: the dashboard has a dedicated MCP panel at https://www.apilocker.app/dashboard#mcp showing server status, a test-connection button, copy-pasteable config for every major client, and a live feed of recent MCP activity.
0600) on ~/.apilocker/config.json.apilocker activity --follow.Config lives at ~/.apilocker/config.json (mode 0600). Don't check it in.
Override the API endpoint for self-hosted deployments:
apilocker register --url https://api.your-locker.example.com
API Locker is free to use with unlimited keys, unlimited tokens, and unlimited proxy calls. Early adopters get grandfathered into free Pro permanently when paid plans launch.
MIT © 2026 API Locker