June exposes a native Anthropic /messages API, which means you can use Claude Code directly through June.
How It Works
Claude Code uses the Anthropic messages format under the hood. By pointing it at June's API and providing your June API key, all requests are routed through June's infrastructure. This gives you the same privacy and billing benefits you're used to from June, within a coding agent of your choice.
Setup
Set the following environment variables and then launch claude:
ANTHROPIC_BASE_URL=https://api.blockchain.info/ai/api \
ANTHROPIC_API_KEY=<JUNE_API_KEY> \
claude
Replace <JUNE_API_KEY> with your June API key.
Model Selection
You can also run Claude Code using a different model, for example if you want to use blockchain/june, you can run:
ANTHROPIC_BASE_URL=https://api.blockchain.info/ai/api \
ANTHROPIC_API_KEY=<JUNE_API_KEY> \
claude --model blockchain/june
See the models guide for more information on supported models.
Shell Configuration
For convenience, add the environment variables to your shell profile (~/.bashrc, ~/.zshrc, etc.) so they persist across sessions:
export ANTHROPIC_BASE_URL="https://api.blockchain.info/ai/api"
export ANTHROPIC_API_KEY="<JUNE_API_KEY>"
Then simply run claude from any directory to start using Claude Code through June.