Skip to main content
GitHub Copilot supports BYOK (Bring Your Own Key) in some contexts. In places that accept a custom base URL, you can point it to Hostlinku and use models from the catalog with your Hostlinku balance.

Copilot CLI

When the BYOK variable is set, Copilot CLI sends all model requests to your provider. A GitHub login is not required for this mode.

Variant: Anthropic format

For the Claude model via the Messages API (full prompt caching), use the anthropic provider with a base URL without /v1:
  • Leave the API wire set to the default (Chat Completions). The Responses API on Hostlinku is stateless (details); Chat Completions supports all catalog models without any restrictions.
  • Without GitHub login, features that rely on GitHub servers (/delegate, the GitHub MCP server, (code search) is not available. Log in with copilot login if you need that feature—the request model remains with Hostlinku.
  • COPILOT_OFFLINE=true disables all connections to GitHub (including telemetry). The prompt remains the same sent to api.hostlinku.com.

GitHub Copilot app

The GitHub Copilot desktop app supports custom model providers (public preview). You still need to sign in to GitHub, but you don’t need a Copilot plan if you’re only using a custom provider. For the Claude model, you can also select the Anthropic provider and enter the base URL https://api.hostlinku.com (without /v1) — this option is available if the provider form includes a base URL field.

Limitations

  • Copilot in JetBrains, Visual Studio, and Xcode does not have a base URL or provider setting Customizable per user. At JetBrains, use the JetBrains AI Assistant or Junie CLI for the Hostlinku model.
  • Inline autocomplete (ghost text) in all editors always uses the Copilot infrastructure. BYOK Applies only to chat and agents.
  • Copilot Business/Enterprise: Organization administrators must enable BYOK (and Copilot CLI for (Copilot app) in the Copilot policy settings.

Troubleshooting