CLI tool for interacting with Continue agent checks on pull requests
npm install @continuedev/continuous-aiCLI tool for interacting with Continue agent checks on pull requests.
``bash`
npm install -g @continuedev/continuous-ai
Get your API key from hub.continue.dev/settings/api-keys and set it:
`bash`
export CONTINUE_API_KEY="con-xxx"
Or pass it with the --token flag to each command.
#### cai status
List all agent checks for a pull request with their current status.
`bash`
cai status https://github.com/owner/repo/pull/123
Options:
- --org - Organization context--token
- - API key (or use CONTINUE_API_KEY env var)--format json|table
- - Output format (default: table)
#### cai wait
Block until all agent checks complete or fail.
`bash`
cai wait https://github.com/owner/repo/pull/123
Options:
- --org - Organization context--token
- - API key--timeout
- - Max wait time (default: 600)--fail-fast
- - Exit immediately on first failure--format json|table
- - Output format
#### cai logs
View logs/state for a specific agent session.
`bash`
cai logs A0042
Options:
- --org - Organization context--token
- - API key--tail
- - Show last N lines (default: all)
#### cai diff
View code diff for an agent session.
`bash`
cai diff A0042
Options:
- --org - Organization context--token
- - API key--format unified|json
- - Output format (default: unified)
#### cai approve
Approve changes and optionally merge the PR.
`bash`
cai approve https://github.com/owner/repo/pull/123 --merge
Options:
- --org - Organization context--token
- - API key--merge
- - Also merge the PR (default: just mark as ready)--merge-method squash|merge|rebase
- - Merge method (default: squash)
#### cai reject
Reject changes and close the PR.
`bash`
cai reject https://github.com/owner/repo/pull/123 --reason "Does not meet requirements"
Options:
- --org - Organization context--token
- - API key--reason
- - Optional rejection reason
- 0 - Success1
- - General error (API error, not found, etc.)2
- - No sessions found for PR124
- - Timeout reached
You can save your API key in ~/.continue/cli-config.json:
`json`
{
"apiKey": "con-xxx",
"apiUrl": "https://api.continue.dev"
}
For internal testing with the staging environment, configure the staging API URL:
`json`
{
"apiKey": "con-xxx",
"apiUrl": "https://api.continue-stage.tools"
}
Get your staging API key from hub.continue-stage.tools/settings/api-keys.
You can also use environment variables:
`bash`
export CONTINUE_API_KEY="con-your-staging-key"
export CONTINUE_API_URL="https://api.continue-stage.tools"
`bash
#!/bin/bashWait for agents, then approve and merge if successful
export CONTINUE_API_KEY="con-xxx"
PR_URL="https://github.com/owner/repo/pull/123"
Apache-2.0