From e4351e2bf3445df1cd26f971d6d189d4dcaecd5b Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Mon, 22 Sep 2025 13:33:56 -0700 Subject: [PATCH] Add CLI API key authentication documentation (#7887) * Add CLI API key authentication documentation * Update docs/guides/cli.mdx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- docs/guides/cli.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/guides/cli.mdx b/docs/guides/cli.mdx index 069bf640a..4610d6301 100644 --- a/docs/guides/cli.mdx +++ b/docs/guides/cli.mdx @@ -87,6 +87,12 @@ cn --ask Bash(curl*) cn --exclude Fetch ``` +## API Key Authentication + +For automation in CI or other headless environments, you can use an API key to authenticate with Continue. First, obtain your personal API key [here](https://hub.continue.dev/settings/api-keys). Then, set it as the `CONTINUE_API_KEY` environment variable. You can now use `cn -p` (headless mode) without needing to log in. + +If you wish to run an automation on behalf of your organization you can obtain an organization-scoped API key by going to [your organization's settings](https://hub.continue.dev/settings/organizations) -> API Keys. + ## Troubleshooting Run `cn` with the `--verbose` flag to see more detailed logs. These will be output to `~/.continue/logs/cn.log`.