Loading...
Loading...
Configure Claude Code authentication for Cyrus — API key, OAuth token, or third-party provider.
npx skill4agent add ceedaragents/cyrus cyrus-setup-claude-authReadEditWrite~/.cyrus/.env~/.cyrus/Bashgrepprintf >>grep -c -E '^(ANTHROPIC_API_KEY|CLAUDE_CODE_OAUTH_TOKEN)=' ~/.cyrus/.env 2>/dev/null || echo "0"Claude Code authentication is already configured. Skipping this step. To reconfigure, remove the existing key fromand re-run this skill.~/.cyrus/.env
How would you like to authenticate Claude Code?
- Current account (easiest) — use the credentials from your active
CLI sessionclaude- API Key — from console.anthropic.com
- Separate OAuth token — run
to generate a token for a specific accountclaude setup-token- Third-Party Provider — Vertex AI, AWS Bedrock, Azure, etc.
~/.claude/uname -sclaudeclaude auth statusclaude setup-tokengrep -q '^CLAUDE_CODE_OAUTH_TOKEN=' ~/.cyrus/.env || echo 'CLAUDE_CODE_OAUTH_TOKEN=' >> ~/.cyrus/.env# macOS: VS Code if available, otherwise TextEdit
code --new-window ~/.cyrus/.env 2>/dev/null || open -a TextEdit ~/.cyrus/.env
# Linux
code ~/.cyrus/.env 2>/dev/null || xdg-open ~/.cyrus/.env
- Run
in a separate terminalclaude setup-token- Copy the token it outputs
- I've opened
— find the~/.cyrus/.envlineCLAUDE_CODE_OAUTH_TOKEN=- Paste the token right after the
(no spaces, no newline)=- Save and close the file
printf 'ANTHROPIC_API_KEY=%s\n' "$(pbpaste)" >> ~/.cyrus/.envprintf 'ANTHROPIC_API_KEY=%s\n' "$(xclip -selection clipboard -o)" >> ~/.cyrus/.envread -s -p "Paste your Anthropic API key: " val && printf 'ANTHROPIC_API_KEY=%s\n' "$val" >> ~/.cyrus/.env && echo " ✓ Saved"claude setup-tokengrep -q '^CLAUDE_CODE_OAUTH_TOKEN=' ~/.cyrus/.env || echo 'CLAUDE_CODE_OAUTH_TOKEN=' >> ~/.cyrus/.env# macOS
code --new-window ~/.cyrus/.env 2>/dev/null || open -a TextEdit ~/.cyrus/.env
# Linux
code ~/.cyrus/.env 2>/dev/null || xdg-open ~/.cyrus/.env
- On the other machine, run
claude setup-token- Copy the token it outputs
- I've opened
— find~/.cyrus/.envand paste the token after theCLAUDE_CODE_OAUTH_TOKEN==- Save and close
For third-party providers, you'll need to set provider-specific environment variables. See Third-Party Integrations for details.Common configurations:AWS Bedrock:CLAUDE_CODE_USE_BEDROCK=1 AWS_REGION=us-east-1Google Vertex AI:CLAUDE_CODE_USE_VERTEX=1 CLOUD_ML_REGION=us-east5 ANTHROPIC_VERTEX_PROJECT_ID=your-project-id
~/.cyrus/.envgrep -c -E '^(ANTHROPIC_API_KEY|CLAUDE_CODE_OAUTH_TOKEN|CLAUDE_CODE_USE_BEDROCK|CLAUDE_CODE_USE_VERTEX)=' ~/.cyrus/.env✓ Claude Code authentication configured.