Configuration¶
Learn how to configure janito for your needs.
Topics¶
- Providers - Configure OpenAI, local servers, or custom providers
- Environment Variables - Use environment variables for configuration
- Secrets - Manage API keys and sensitive credentials
Configuration File¶
janito stores your configuration in ~/.janito/. The main configuration file is ~/.janito/config.json.
View Configuration¶
Configuration Options¶
| Option | Description | Default |
|---|---|---|
provider |
Provider type (openai, custom) |
openai |
model |
Model name | gpt-4 |
context_window |
Maximum tokens | 65536 |
endpoint |
API endpoint URL (for custom providers) | - |
base_url |
Base URL for OpenAI-compatible APIs | https://api.openai.com/v1 |
Configuration Priority¶
Configuration values are loaded in this order (later overrides earlier):
- Default values
- Environment variables
- Configuration file (
~/.janito/config.json) - Command-line arguments (
--set,--set-api-key)
Note: When using CLI arguments,
--setand--set-api-keymust be run as separate commands. They cannot be combined in a single invocation.
Next Steps¶
- Configure providers for different AI services
- Set up environment variables for automation
- Manage secrets securely