-
feat(cli): add agent signup and claim support (#3317)
发布于
2026-05-01 22:05:39 +00:00 Summary
- add
composio signup,composio login --agent, andcomposio agent signupflows backed by agents.composio.dev - make signup messaging explicit that
composio signupcreates/signs
into a Composio agent and that the flow is non-interactive - add
composio agent login <composio_agent_key>for restoring an
existing agent when the key was saved - add
composio agent whoami,claim, and JSON-onlyinboxcommands
using the stored~/.composio/agent.jsonagent identity - guard agent flows so a regular human CLI login cannot run
composio agent ...or overwrite itself with agent signup without logging out
first - show expected agent-auth issues as a softer warning with next steps
instead of the global crash-style error panel - warn and confirm before agent logout removes
~/.composio/agent.json
/composio_agent_key;logout --forceskips the prompt - update
install.sh --agentto sign up/log in as an agent after
install
Tests
pnpm --filter @composio/cli buildpnpm --filter @composio/cli test -- test/src/commands/agent.cmd.test.tspnpm --filter @composio/cli test -- test/src/commands/agent.cmd.test.ts test/src/commands/logout.cmd.test.ts test/src/commands/login.cmd.test.tspnpm lint(passes with existing warnings only)
CI
- GitHub checks are rerunning on the latest push.
下载附件
- add