Skip to main content

Prerequisites

Setup

The fastest way to set up Claude Code with Costa is using the Costa CLI :
costa setup claude
That’s it! Your Claude Code is now configured to use Costa.

Verification

After saving the settings file, restart Claude Code. You can verify the configuration is working by checking the status line (if configured) or by running a Claude Code command - it should now route through Costa Code.

Troubleshooting

  • Configuration not applied: Make sure you saved ~/.claude/settings.json and restarted Claude Code
  • JSON syntax errors: Verify your JSON is valid (no trailing commas, proper quotes)
  • Authentication errors: Verify your Costa API key is correct and active
  • Connection errors: Check that you can reach https://ai.costa.app/api
  • Settings file doesn’t exist: Create the ~/.claude directory first with mkdir -p ~/.claude