Skip to main content
Cline is an AI coding agent that runs inside VS Code. You can point it at Consus Gateway to get Claude in your editor while keeping all traffic within government-authorized cloud infrastructure.

1. Set Up Your API Key

You’ll enter your Consus Gateway API key as a custom header in the Cline settings panel (no environment variable needed).

2. Configure Cline

Open VS Code and click the Cline icon in the sidebar. In the settings panel at the top of the Cline view:
  1. Set API Provider to OpenAI Compatible
  2. Set Base URL to https://api.consus.io/v1
  3. Set API Key to any non-empty placeholder such as dummy. Consus reads your key from the x-api-key header (step 4 below), which wins over this field, but Cline requires it to be non-empty.
  4. Under Custom Headers, add a header with name x-api-key and your Consus Gateway API key as the value
Don’t want to handle a key? With the Consus credential helper installed, run sh ~/.consus/helper.sh login. It opens your browser to sign in with your company account, then prints the key. Use that as the header value.
Important: Consus Gateway authenticates via the x-api-key custom header, so that header must hold your real key. When both are sent, x-api-key wins over the API Key field, so any non-empty placeholder (such as dummy) works there. The header name must be exactly x-api-key (all lowercase, with hyphens); a typo like x-api-ky will result in a 403 error with no error body. Alternative: put your Consus key in the API Key field and skip the custom header. Cline sends it as a Bearer token, which the gateway also accepts (Authentication).
  1. Set Model ID to any composite model ID from the Models page. For example, gpt-5.6-sol:itar, gpt-5.4:itar, gpt-5.6-terra:itar, or grok-4.6:itar.
Click Save to apply.

3. Start Coding

Open a task in Cline and start prompting. All requests route through Consus Gateway to government-authorized cloud infrastructure. Streaming, tool use (file reads, writes, terminal commands, browser actions), and multi-turn conversations all work out of the box.