Skip to content
cyrusagents avatar

Cyrus Setup Claude Auth

Walks through configuring Claude Code credentials for Cyrus with secrets kept out of the conversation.

CCM score
59 of 100
skills.sh installs
1.2K
GitHub stars
919
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers four auth paths: current CLI account, API key, separate OAuth token, and third-party providers like Bedrock and Vertex AI
  • Checks ~/.cyrus/.env first and skips setup when ANTHROPIC_API_KEY or CLAUDE_CODE_OAUTH_TOKEN is already present
  • Enforces Bash-only handling of ~/.cyrus/.env so the Read, Edit, and Write tools never expose secrets to the conversation
  • Designed for users setting up Cyrus AI sessions who need to store credentials without pasting them into chat

Install

$ npx -y skills add cyrusagents/cyrus --skill cyrus-setup-claude-auth -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CRITICAL: Never use Read, Edit, or Write tools on ~/.cyrus/.env or any file inside ~/.cyrus/. Use only Bash commands (grep, printf >>, etc.) to interact with env files — secrets must never be read into the conversation context.

Setup Claude Auth

Configures Claude Code credentials so Cyrus can run AI sessions.

Step 1: Check Existing Auth

Check if credentials are already configured:

grep -c -E '^(ANTHROPIC_API_KEY|CLAUDE_CODE_OAUTH_TOKEN)=' ~/.cyrus/.env 2>/dev/null || echo "0"

If the count is >= 1, inform the user:

Claude Code authentication is already configured. Skipping this step. To reconfigure, remove the existing key from ~/.cyrus/.env and re-run this skill.

Skip to completion.

Step 2: Choose Auth Method

Ask the user:

How would you like to authenticate Claude Code?

  1. Current account (easiest) — use the credentials from your active claude CLI session
  2. API Key — from console.anthropic.com
  3. Separate OAuth token — run claude setup-token to generate a token for a specific account
  4. Third-Party Provider — Vertex AI, AWS Bedrock, Azure, etc.

Details

Repository
github.com/cyrusagents/cyrus
Categories
AI Agents & LLM Apps, CLI & Terminal, Agent Workflow & Planning
First seen
Jun 3, 2026

Questions

What does the cyrus-setup-claude-auth skill do?

The cyrus-setup-claude-auth skill configures Claude Code credentials so Cyrus can run AI sessions. It walks you through choosing an auth method: your current account, an API key, a separate OAuth token, or a third-party provider such as AWS Bedrock or Google Vertex AI.

How do I install the cyrus-setup-claude-auth skill?

Run npx -y skills add cyrusagents/cyrus --skill cyrus-setup-claude-auth -y in a project to install the cyrus-setup-claude-auth skill. Once installed, the skill lets your agent check for existing Claude Code credentials and save a new API key or OAuth token into the Cyrus env file.

Who is cyrus-setup-claude-auth for?

The cyrus-setup-claude-auth skill is for developers who run the Cyrus agent and need Claude Code authentication set up in ~/.cyrus/.env. It also covers teams that route Claude through Bedrock or Vertex AI instead of a direct API key.

Does cyrus-setup-claude-auth keep my secrets out of the conversation?

Yes, the cyrus-setup-claude-auth skill never reads or edits files inside ~/.cyrus/ with Read, Edit or Write tools. It uses only Bash commands such as grep and printf to write env entries, so API keys and OAuth tokens stay out of the agent context.

More from cyrusagents/cyrus

All 14

Similar to Cyrus Setup Claude Auth

More AI Agents & LLM Apps