快速开始
创建密钥,发出一个请求,立即得到一个可观看的会话。
export COMMANDAGI_API_KEY=cagi_…curl https://api.commandagi.com/v1/threads \
-H "Authorization: Bearer $COMMANDAGI_API_KEY" \
-H "content-type: application/json" \
-d '{
"template": "vm/software-engineer",
"task": "Clone the repo, run the tests, and open a PR with any fixes."
}'签发限定到某个项目、会话或环境的密钥——默认最小权限。
个人密钥用于脚本;服务账号密钥用于共享、可审计的自动化。
每次密钥操作都有记录——谁做了什么、在哪个资源上、允许还是拒绝。
即时轮换或吊销密钥;前缀让你分清哪个密钥是哪个。