packages/kilo-docs/pages/getting-started/setup-authentication.md
When you install Kilo Code, you'll be prompted to sign in or create a free account. This automatically configures everything you need to get started. You can sign in with your email address, Google, Apple, GitHub, GitLab, Discord, LinkedIn, or Anaconda, or through your organization's single sign-on.
{% tabs %} {% tab label="VS Code" %}
The extension prompts you to sign in when you first open Kilo Code in VS Code. Click Sign In and complete the browser-based flow. Sign-in applies across extension surfaces, including the sidebar and Agent Manager.
{% /tab %} {% tab label="CLI" %}
Run the auth command and follow the browser-based sign-in flow:
kilo auth login
This may open your browser to complete authentication. Once signed in, your credentials are stored locally and used for all future sessions.
To verify your auth status:
kilo auth list
{% /tab %} {% /tabs %}
{% callout type="tip" title="Add Credits" %} Add credits to your account, or sign up for Kilo Pass. {% /callout %}
If you're using the Kilo AI Gateway outside of the Kilo Code extension (for example, with the Vercel AI SDK or OpenAI SDK), you'll need an API key:
If you prefer to use your own API key or existing subscription, Kilo Code supports over 30 providers. Here are some popular options to get started:
| Provider | Best For | API Key Required |
|---|---|---|
| ChatGPT Plus/Pro | Use your existing subscription | No |
| OpenRouter | Access multiple models with one key | Yes |
| Anthropic | Direct access to Claude models | Yes |
| OpenAI | Access to GPT models | Yes |
{% callout type="info" title="Many More Providers Available" %} These are just a few examples! Kilo Code supports many more providers including Google Gemini, DeepSeek, Mistral, Ollama (for local models), AWS Bedrock, Google Vertex, and more. See the complete list at AI Providers. {% /callout %}
Already have a ChatGPT subscription? You can use it with Kilo Code through the OpenAI ChatGPT provider—no API key needed.
{% image src="/docs/img/connecting-api-provider/connecting-api-provider-4.png" alt="OpenRouter API keys page" width="600px" caption="Create and copy your OpenRouter API key" /%}
{% image src="/docs/img/connecting-api-provider/connecting-api-provider-5.png" alt="Anthropic console API Keys section" width="600px" caption="Copy your Anthropic API key immediately after creation" /%}
{% image src="/docs/img/connecting-api-provider/connecting-api-provider-6.png" alt="OpenAI API keys page" width="600px" caption="Copy your OpenAI API key immediately after creation" /%}
{% tabs %} {% tab label="VS Code" %}
These settings apply across the extension, including the sidebar and Agent Manager. Agent Manager does not need separate provider or Kilo CLI authentication setup.
{% /tab %} {% tab label="CLI" %}
Set the API key as an environment variable:
export ANTHROPIC_API_KEY="sk-ant-..."
Or use kilo auth login for providers that support OAuth, such as GitHub Copilot or ChatGPT Plus/Pro.
To set a default model:
{
"model": "anthropic/claude-sonnet-4-20250514",
}
{% /tab %} {% /tabs %}
{% callout type="info" title="Need Help?" %} Reach out to our support team or join our Discord community. {% /callout %}