Reference
API keys
Manage hg_live_ and hg_test_ keys for Hangar MCP endpoints.
Key types
hg_live_Production keys. Rate limits and credit costs apply. Use in server-side code only — never in client bundles or public repos.
hg_test_Sandbox keys. Requests hit the Hangar MCP sandbox environment. No credits consumed.
Creating a key
Go to Settings → API Keys → New Key. Choose a name, select the key type, and set the scopes you need. The plaintext key is shown only once at creation — copy it immediately.
scopes
# Available scopes: # tools:read — call Hangar MCP tools # tools:write — publish new MCP tool endpoints # usage:read — read usage logs and credit ledger # admin — manage keys and org settings (use sparingly)
Securing your keys
- ✗Never commit
hg_live_keys to version control - ✗Never embed live keys in client-side JavaScript
- ✓Store in environment variables and read at runtime
- ✓Use
hg_test_keys during local development - ✓Rotate keys immediately if you suspect a leak — Hangarvibe auto-redacts known key formats from agent context