Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code + OriginStartAI Gateway Starter

Use a custom OpenAI-compatible or Anthropic-compatible gateway with Claude Code in about 3 minutes.

This repository is a public, sanitized starter. Replace every placeholder with values from your own dashboard before running it.

Quickstart

  1. Copy the example environment file.
Copy-Item .env.example .env
  1. Edit .env.
ANTHROPIC_BASE_URL=https://your-gateway.com
ANTHROPIC_AUTH_TOKEN=sk-example-xxx
  1. Verify the endpoint before opening Claude Code.
.\scripts\verify-claude-gateway.ps1
  1. Start Claude Code in the same terminal session.
claude

What This Solves

  • Configure Claude Code with a custom API endpoint.
  • Verify your gateway before a real coding session.
  • Keep secrets out of GitHub by using .env.example.
  • Troubleshoot common base URL and token mistakes.

Common Errors

Symptom Likely cause Fix
401 or unauthorized API token is missing or wrong Recreate the key in your dashboard and update .env.
404 on /v1/messages Base URL includes the wrong path Use the provider's documented root URL.
Timeout Proxy, DNS, or gateway outage Test with curl and check provider status.
Claude Code ignores env Terminal was opened before env changed Restart the terminal and reload .env.

Security Notes

  • Never commit .env.
  • Never paste a real API key into issues, screenshots, commits, or README files.
  • Public examples must use sk-example-xxx and https://your-gateway.com.

Links

  • Docs: https://your-gateway.com/docs
  • Pricing: https://your-gateway.com/pricing
  • Support: https://your-gateway.com/support

License

MIT

About

Minimal public-safe Claude Code gateway starter; companion to the full OriginStartAI starter

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages