Skip to main content
Docs/IDE Integration & API/Custom Base URL

Custom Base URL

Default

https://api.codepus.ai/v1

Override

IDE settings → CodePus → API → Custom Base URL.

Common scenarios:

  • Private deployment: https://gateway.your-corp.com/v1
  • Local proxy: http://localhost:8080/v1

CIDR allow-list

Enterprise: Team → Network → only allow specified source IPs to call API Keys.

TLS

  • Self-signed: trust the root CA OS-wide, or set NODE_EXTRA_CA_CERTS=...
  • Plain HTTP: only localhost / 127.0.0.1 allowed

Verify

curl -H "Authorization: Bearer cpk_xxx" https://api.codepus.ai/v1/models

A model list JSON means success.