Skip to content

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

janito --show-config

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):

  1. Default values
  2. Environment variables
  3. Configuration file (~/.janito/config.json)
  4. Command-line arguments (--set, --set-api-key)

Note: When using CLI arguments, --set and --set-api-key must be run as separate commands. They cannot be combined in a single invocation.

Next Steps