发布

  • feat(cli): add agent signup and claim support (#3317)

    frostbyte_neo 发布于 2026-05-01 22:05:39 +00:00

    Summary

    • add composio signup, composio login --agent, and composio agent signup flows backed by agents.composio.dev
    • make signup messaging explicit that composio signup creates/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-only inbox commands
      using the stored ~/.composio/agent.json agent 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 --force skips the prompt
    • update install.sh --agent to sign up/log in as an agent after
      install

    Tests

    • pnpm --filter @composio/cli build
    • pnpm --filter @composio/cli test -- test/src/commands/agent.cmd.test.ts
    • pnpm --filter @composio/cli test -- test/src/commands/agent.cmd.test.ts test/src/commands/logout.cmd.test.ts test/src/commands/login.cmd.test.ts
    • pnpm lint (passes with existing warnings only)

    CI

    • GitHub checks are rerunning on the latest push.
    下载附件