Skip to content

Get API keys from process environment #102

@sabrehagen

Description

@sabrehagen

Feature request

Add support for configuring OpenAI and Anthropic API keys via environment variables. Desired environment variable names are OPENAI_API_KEY and ANTHROPIC_API_KEY.

Why?

It is desireable to be able to configure provider API keys via environment variables rather than the config file, allowing for configuration to be set on invocation of aicommit2 rather than the additional required step of setting config file vaules before invocation.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions