跳到正文
TakoAPI
返回技能列表

secure-api-calls

由 smarcombes 提供

Coding Agents & IDEs
2.0k下载量由 clawskills.sh 提供
4星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Call any API without leaking credentials.

描述

该技能的功能

Keychains proxies API requests from AI agents, replacing placeholder variables like {{OAUTH2_ACCESS_TOKEN}} with real credentials server-side. The agent never handles actual tokens or keys. Users approve credential access once via biometric on keychains.dev, and all subsequent requests to that provider succeed automatically.

Unlike passing real API keys to agents directly, Keychains keeps credentials in the user's encrypted vault and injects them only at proxy time, so a compromised agent cannot exfiltrate secrets.

何时使用

  • Letting an AI agent list GitHub repos without exposing a personal access token
  • Sending Slack messages from an agent using an OAuth token the agent never sees
  • Reading Gmail inbox from an automated workflow without storing credentials locally
  • Making Stripe API calls from an agent without hardcoding secret keys
  • Delegating API access to a cloud-hosted agent without sharing credentials directly

示例工作流

输入

User asks: List my GitHub repositories

智能体
  1. 1

    Run keychains curl https://api.github.com/user/repos -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}'

  2. 2

    Keychains returns an approval URL on first use — display it to the user

  3. 3

    Run keychains wait <approval-url> to poll until the user approves via biometric

  4. 4

    Replay the original command — Keychains injects the real token and forwards the request

  5. 5

    Return the API response to the user

输出

JSON list of the user's GitHub repositories

前置要求

  • keychains.dev account

安装

clawhub install smarcombes/secure-api-calls

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接