Start with one model

The model is the service that reads your request and decides what to do. Mini-a supplies the tools and runs the conversation. You can change providers without rewriting an agent profile.

Before you start: install mini-a and obtain a provider API key, or run Ollama locally. Model identifiers below are examples; choose an identifier available in your provider account.

export OAF_MODEL="(type: ollama, model: 'llama3', url: 'http://localhost:11434')"
mini-a goal="Explain what a text file is in one sentence."

Pull the named model in Ollama first. A successful run returns a sentence. A connection error usually means Ollama is not running or its URL is wrong; a model-not-found error means the identifier is unavailable.

Keep the first run to one model. Add a low-cost or validation model when you have a working task and a reason to separate those roles.

Multi-Model Support

mini-a works with any LLM provider out of the box. Switch between providers by changing a single environment variable — no code changes required, and model names are used as-is, with no provider prefix.

OAF_MODEL (and OAF_LC_MODEL/OAF_VAL_MODEL) is a map with a type field that selects the provider implementation:

type Covers Example
openai OpenAI, plus any OpenAI-compatible API — Cerebras, Groq, Mistral, Grok (x.ai), GitHub Models, Scaleway, OpenRouter, Azure OpenAI, etc. (set url to the provider’s endpoint) (type: openai, model: gpt-5.2, key: '...')
gemini Google Gemini (type: gemini, model: gemini-3-pro-preview, key: '...')
anthropic Anthropic Claude (type: anthropic, model: claude-sonnet-4-5-20250929, key: '...')
ollama Ollama (local or cloud models) (type: ollama, model: 'llama3', url: 'http://localhost:11434')
bedrock AWS Bedrock (type: bedrock, options: (region: eu-west-1, model: '...'))

For OpenAI-compatible providers, just point url at the provider’s endpoint and model at its model id:

export OAF_MODEL="(type: openai, model: gpt-5.2, key: '...')"                                                      # OpenAI
export OAF_MODEL="(type: openai, url: 'https://api.groq.com/openai', model: 'openai/gpt-oss-120b', key: '...')"    # Groq
export OAF_MODEL="(type: gemini, model: gemini-3-pro-preview, key: '...')"                                         # Google
export OAF_MODEL="(type: ollama, model: 'llama3', url: 'http://localhost:11434')"                                  # Local

Set credentials directly in OAF_MODEL/OAF_LC_MODEL using key: '...' so configuration stays in one place. Ollama runs locally and requires no key.


Model Manager

The built-in model manager provides a TUI for managing model configurations and credentials.

Launch the Model Manager

mini-a modelman=true

Capabilities

  • Encrypted credential storage — API keys and tokens are stored encrypted on disk, avoiding plaintext secrets in environment variables or shell history.
  • Multiple model profiles — Define and switch between named profiles (e.g., “development” with a cheap model, “production” with a frontier model).
  • Import/export configurations — Share model configurations across machines or team members.
  • Test model connectivity — Verify that a model and API key combination works before using it in a session.

Provider-Specific Guides

Configuration details and tips for specific LLM providers.

AWS Bedrock

AWS Bedrock requires valid AWS credentials. mini-a reads credentials from environment variables or the standard AWS credentials file:

export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
export AWS_DEFAULT_REGION="us-east-1"
export OAF_MODEL="(type: bedrock, options: (region: eu-west-1, model: 'anthropic.claude-sonnet-4-20250514-v1:0'))"

Alternatively, configure credentials in ~/.aws/credentials and set the region in ~/.aws/config. Bedrock model names follow the provider’s naming convention (e.g., anthropic.claude-sonnet-4-20250514-v1:0).

GitHub Models

GitHub Models can use your GitHub personal access token directly in OAF_MODEL:

export OAF_MODEL="(type: openai, url: 'https://models.github.ai/inference', model: openai/gpt-5, key: $(gh auth token), apiVersion: '')"

Model names follow GitHub’s model catalog naming. Check the GitHub Models marketplace for available models.

Ollama

Ollama runs models locally with no API key required. Ensure the Ollama server is running before starting mini-a:

# Pull a model first
ollama pull llama3

# Start mini-a with the local model
export OAF_MODEL="(type: ollama, model: 'llama3', url: 'http://localhost:11434')"
mini-a

Performance tips for Ollama:

  • Use quantized models (e.g., llama3:8b-q4_0) for faster inference on limited hardware.
  • Ensure sufficient RAM for the model size. 8B parameter models typically need 8-16 GB of RAM.
  • For GPU acceleration, verify that Ollama detects your GPU with ollama ps.
  • Set the Ollama host if running on a different machine: export OLLAMA_HOST=http://192.168.1.100:11434