API Key Setup

API Key Setup

Zcrafter uses your OpenRouter API key. There are no user accounts, subscriptions, or logins required.

Get an API key

  1. Visit openrouter.ai and sign in
  2. Generate a new API key
  3. Copy the key

Set the API key

Set the key in your environment so the CLI can access it:

export OPENROUTER_API_KEY="your-api-key"

To persist it, add the same line to your shell profile (for example, ~/.zshrc) and reload your shell:

source ~/.zshrc

Verify

Run the CLI and ask a question:

zcrafter

Then type:

Explain what COBOL is

You should receive an answer immediately. If not, check that your API key is set and valid.