Claude Code — Gia Cat Group
Coding agent trên terminal và IDE theo giao thức Anthropic Messages.
- Protocol
- Anthropic Messages
- Config Path
~/.claude/settings.json- Base URL
https://api.giacatgroup.vn
Quick Setup Steps
- Create an API key in Dashboard (prefix
sk-gcg-). - Apply configuration at
~/.claude/settings.json. - Verify connectivity via GET /v1/models before running workloads.
export ANTHROPIC_BASE_URL="https://api.giacatgroup.vn"
export ANTHROPIC_AUTH_TOKEN="sk-gcg-your_key"
export ANTHROPIC_MODEL="claude-sonnet-5"
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.giacatgroup.vn",
"ANTHROPIC_AUTH_TOKEN": "sk-gcg-your_key"
}
}HTTP Status Codes & Troubleshooting
| HTTP | Meaning | Resolution |
|---|---|---|
400 | Bad Request | Validate JSON payload, model ID, and request fields. |
401 | Unauthorized | Verify API key and Authorization or x-api-key header. |
402 | Payment Required | Insufficient ST balance — top up credits in Dashboard. |
403 | Forbidden | Key lacks permission for this model or is paused. |
404 | Not Found | Check base URL path (/v1 vs root) and active model ID. |
413 | Payload Too Large | Reduce prompt size or media payload. |
429 | Too Many Requests | Rate limit exceeded — apply exponential backoff and retry. |
500 / 502 / 503 / 504 | Upstream / Gateway Error | Transient upstream error — retry with backoff and keep x-request-id. |