npx skills add https://github.com/vapiai/skills --skill setup-api-key引导用户获取并配置 Vapi 语音 AI 平台的 API 密钥。
告知用户:
要设置 Vapi,请在 Vapi 仪表盘中打开 API 密钥页面:https://dashboard.vapi.ai/org/api-keys
(需要账户?请先在 https://dashboard.vapi.ai/signup 创建一个)
如果您还没有 API 密钥:
- 点击 "Create Key"
- 为您的密钥命名(例如,"development")
- 立即复制密钥 — 它只会显示一次
准备好后,请在此处粘贴您的 API 密钥。
然后等待用户的下一条消息,其中应包含 API 密钥。
一旦用户提供了 API 密钥:
验证密钥,通过发送请求:
curl -s -o /dev/null -w "%{http_code}" https://api.vapi.ai/assistant \
-H "Authorization: Bearer <the-api-key>"
如果验证失败(非 200 响应):
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
如果验证成功(200 响应),保存 API 密钥:
检查是否存在 .env 文件。如果存在,则追加内容。如果不存在,则创建一个:
VAPI_API_KEY=<the-api-key>
4. 确认成功:
您的 Vapi API 密钥已配置并存储在
.env文件中,变量名为VAPI_API_KEY。您现在可以使用 Vapi 的 API 来创建助手、拨打电话以及构建语音 AI 代理。
请妥善保管此密钥 — 不要将其提交到版本控制系统中。
检查 .gitignore 文件是否存在且包含 .env。如果没有,请添加:
.env
所有 Vapi 技能都期望 API 密钥存储在 VAPI_API_KEY 环境变量中。所有 API 请求的基础 URL 是:
https://api.vapi.ai
认证通过 Bearer 令牌进行:
Authorization: Bearer $VAPI_API_KEY
此技能仓库包含一个 Vapi 文档 MCP 服务器 (vapi-docs),它使您的 AI 代理能够访问完整的 Vapi 知识库。使用 searchDocs 工具来查找超出此技能范围的内容 — 高级配置、故障排除、SDK 详细信息等。
自动配置: 如果您克隆或安装了这些技能,MCP 服务器已通过 .mcp.json (Claude Code)、.cursor/mcp.json (Cursor) 或 .vscode/mcp.json (VS Code Copilot) 完成配置。
手动设置: 如果您的代理未能自动检测到配置,请运行:
claude mcp add vapi-docs -- npx -y mcp-remote https://docs.vapi.ai/_mcp/server
有关在所有支持的代理上进行完整设置的说明,请参阅 README。
每周安装量
281
仓库
GitHub 星标数
22
首次出现
2026年2月19日
安全审计
安装在
cursor250
kimi-cli247
gemini-cli247
codex247
opencode247
amp247
Guide the user through obtaining and configuring a Vapi API key for the voice AI platform.
Tell the user:
To set up Vapi, open the API keys page in the Vapi Dashboard: https://dashboard.vapi.ai/org/api-keys
(Need an account? Create one at https://dashboard.vapi.ai/signup first)
If you don't have an API key yet:
- Click "Create Key"
- Name your key (e.g., "development")
- Copy the key immediately — it is only shown once
Paste your API key here when ready.
Then wait for the user's next message which should contain the API key.
Once the user provides the API key:
Validate the key by making a request:
curl -s -o /dev/null -w "%{http_code}" https://api.vapi.ai/assistant \
-H "Authorization: Bearer <the-api-key>"
If validation fails (non-200 response):
If validation succeeds (200 response), save the API key:
Check if a .env file exists. If so, append to it. If not, create one:
VAPI_API_KEY=<the-api-key>
4. Confirm success:
Your Vapi API key is configured and stored in
.envasVAPI_API_KEY.You can now use Vapi's API to create assistants, make calls, and build voice AI agents.
Keep this key safe — do not commit it to version control.
Check if .gitignore exists and contains .env. If not, add it:
.env
All Vapi skills expect the API key in the VAPI_API_KEY environment variable. The base URL for all API requests is:
https://api.vapi.ai
Authentication is via Bearer token:
Authorization: Bearer $VAPI_API_KEY
This skills repository includes a Vapi documentation MCP server (vapi-docs) that gives your AI agent access to the full Vapi knowledge base. Use the searchDocs tool to look up anything beyond what this skill covers — advanced configuration, troubleshooting, SDK details, and more.
Auto-configured: If you cloned or installed these skills, the MCP server is already configured via .mcp.json (Claude Code), .cursor/mcp.json (Cursor), or .vscode/mcp.json (VS Code Copilot).
Manual setup: If your agent doesn't auto-detect the config, run:
claude mcp add vapi-docs -- npx -y mcp-remote https://docs.vapi.ai/_mcp/server
See the README for full setup instructions across all supported agents.
Weekly Installs
281
Repository
GitHub Stars
22
First Seen
Feb 19, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykFail
Installed on
cursor250
kimi-cli247
gemini-cli247
codex247
opencode247
amp247
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
56,200 周安装
竞争对手研究指南:SEO、内容、反向链接与定价分析工具
231 周安装
Azure 工作负载自动升级评估工具 - 支持 Functions、App Service 计划与 SKU 迁移
231 周安装
Kaizen持续改进方法论:软件开发中的渐进式优化与防错设计实践指南
231 周安装
软件UI/UX设计指南:以用户为中心的设计原则、WCAG可访问性与平台规范
231 周安装
Apify 网络爬虫和自动化平台 - 无需编码抓取亚马逊、谷歌、领英等网站数据
231 周安装
llama.cpp 中文指南:纯 C/C++ LLM 推理,CPU/非 NVIDIA 硬件优化部署
231 周安装