Skip to content

Instantly share code, notes, and snippets.

@jbouhier
Last active February 4, 2026 12:21
Show Gist options
  • Select an option

  • Save jbouhier/d0c17de7aef3f811ab4904d045c1f137 to your computer and use it in GitHub Desktop.

Select an option

Save jbouhier/d0c17de7aef3f811ab4904d045c1f137 to your computer and use it in GitHub Desktop.
Claude code optimized - Plan + API
# Add this in your dotfile
# Claude Code API key
export ANTHROPIC_API_KEY="sk-ant-xxxxx"
# Quick toggle aliases
alias cc-api='export ANTHROPIC_API_KEY="sk-ant-xxxxx"'
alias cc-sub='unset ANTHROPIC_API_KEY'
alias cc-status='claude-code auth status'
@jbouhier
Copy link
Author

jbouhier commented Feb 4, 2026

Then just:

cc-sub      # Switch to subscription
cc-api      # Switch to API
cc-status   # Check current auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment