Design System
COHERENT_E001

No AI key available

`coherent chat` makes API calls to Anthropic (or OpenAI) directly. If no key is configured, the command cannot proceed.

When you see it

Running `coherent chat "..."` without `ANTHROPIC_API_KEY` (or `OPENAI_API_KEY`) set in your environment or stored in the project's `.env`.

Why

`coherent chat` makes API calls to Anthropic (or OpenAI) directly. Without a key, there is no way for the CLI to reach the provider.

Fix options

  1. 1

    Use Claude Code skill mode (no API key required)

    If you already pay for a Claude Pro / Max / Free subscription, open the project in Claude Code and run `/coherent-generate "describe your app"`. Your Claude Code session does the generation; Coherent contributes constraints and validation. Nothing is billed on Coherent's side.

    $ /coherent-generate "describe your app"
  2. 2

    Add an API key

    Store the key in the project's `.env` (already `.gitignore`-d) or export it in your shell before running `coherent chat`.

    $ coherent auth set-key sk-ant-...

Related