@agentcred-ai/cli
v0.2.1
Published
CLI tool for AgentCred developer workflows
Maintainers
Readme
@agentcred-ai/cli
CLI tool for AgentCred developer workflows — sign and verify agent credentials from the command line.
Installation
No installation needed! Use with npx:
npx @agentcred-ai/cli --helpOr install globally:
npm install -g @agentcred-ai/cli
agentcred --helpQuick Start
# 1. Initialize identity with GitHub token
npx @agentcred-ai/cli init --token ghp_your_github_token
# 2. Sign content
echo "Hello world" | npx @agentcred-ai/cli sign --agent my-bot
# 3. Verify an envelope
npx @agentcred-ai/cli verify < envelope.json
# 4. Check current identity
npx @agentcred-ai/cli whoamiCommands
| Command | Description | Example |
|---------|-------------|---------|
| init --token <token> | Initialize identity with GitHub OAuth token | agentcred init --token ghp_... |
| sign [file] | Sign content (file or stdin) | echo "msg" \| agentcred sign --agent bot |
| verify [file] | Verify AgentCred envelope | agentcred verify < envelope.json |
| whoami | Show current identity | agentcred whoami |
Sign Options
--agent <name>— Agent name (optional, defaults todefault)
Verify Options
--offline— Verify offline with public key (requires--key)--key <path>— Path to public key file (for offline verification)
Documentation
See main README for full documentation and examples.
For protocol details, see SPEC.md.
License
MIT
