Skip to content
Niki v0.7.0 — plan mode, honest metering, headless CI contract.Read the release notes
niki
Esc
navigateopen⌘Jpreview
On this page

Anthropic & OpenAI

Configuring Anthropic Claude and OpenAI models in NIKI.

Anthropic & OpenAI Setup

Anthropic and OpenAI provide the foundational high-reasoning models for NIKI.


Anthropic Configuration

Set your environment variable:

export ANTHROPIC_API_KEY="sk-ant-api03-..."

Or configure in niki.toml:

[providers.anthropic]
api_key       = "sk-ant-..."
default_model = "claude-sonnet-4-20250514"

OpenAI Configuration

Set your environment variable:

export OPENAI_API_KEY="sk-proj-..."

Or configure in niki.toml:

[providers.openai]
api_key       = "sk-..."
default_model = "gpt-4o"

Was this page helpful?