Frequently asked questions about mini-a. Can’t find your answer? Open an issue.
General
What is mini-a?
mini-a is a minimalist autonomous agent framework built on OpenAF. It connects to LLMs (like GPT-5, Gemini, Claude, or local models via Ollama), uses tools through the MCP protocol, and can execute shell commands to achieve goals you define — all from a single command.
How does mini-a compare to other agent frameworks?
Is mini-a free?
Yes. mini-a is open source. You only pay for the LLM API calls you make. Using local models (Ollama) is completely free.
What is OpenAF?
OpenAF is an open-source automation framework for Java/JavaScript. mini-a is built as an OpenAF package (oPack). OpenAF provides the runtime, and mini-a provides the agent logic.
Installation
How do I install OpenAF?
Visit openaf.io for installation instructions. It supports Linux, macOS, and Windows.
What platforms does mini-a support?
Anywhere OpenAF runs: Linux, macOS, Windows, and Docker. ARM and x86 architectures are supported.
Do I need Java?
OpenAF includes its own runtime, so you don’t need to install Java separately.
Models
Which LLM model should I use?
It depends on your needs:
| Use Case | Recommended Model | Why |
|---|---|---|
| General purpose | (type: openai, model: gpt-5.2, key: '...') |
Good balance of speed, cost, and quality |
| Budget-friendly | (type: openai, model: gpt-5-mini, key: '...') |
Low cost, good for simple tasks |
| Best quality | (type: anthropic, model: claude-sonnet-4-5-20250929, key: '...') |
Strong reasoning and coding |
| Privacy/local | (type: ollama, model: 'llama3', url: 'http://localhost:11434') |
Runs locally, no data leaves your machine |
| AWS environments | (type: bedrock, options: (region: eu-west-1, model: 'anthropic.claude-sonnet-4-5-20250929-v1:0')) |
Uses existing AWS credentials |
Can I use local models?
Yes. Install Ollama, pull a model (ollama pull llama3), and set:
export OAF_MODEL="(type: ollama, model: 'llama3', url: 'http://localhost:11434')"
No API key needed. All processing stays on your machine.
How do I manage API keys securely?
Use the built-in model manager for encrypted storage:
mini-a modelman=true
This provides a TUI to store, encrypt, and manage credentials. Alternatively, use environment variables.
Can I switch models mid-session?
Yes. Use the /model command in the console to see the current model. To change models, restart with a different OAF_MODEL value, or use the model manager.
Does mini-a support custom slash commands, skills, and hooks?
Yes. mini-a supports:
- Custom slash command templates in
~/.openaf-mini-a/commands/<name>.md - Skills in
~/.openaf-mini-a/skills/<name>/SKILL.mdor~/.openaf-mini-a/skills/<name>.md - Console hooks in
~/.openaf-mini-a/hooks/*.yaml|*.yml|*.json - Extra loading paths via
extracommands=...,extraskills=..., andextrahooks=...
You can run templates directly with mini-a exec="/<name> arg1 arg2" and list skills with /skills.
Supported placeholders inside command/skill templates are ,, , and positional, ``, …
Reference: mini-a USAGE.md
MCP
What is MCP?
MCP (Model Context Protocol) is a standard protocol for connecting LLMs to external tools and data sources. mini-a includes 20+ built-in MCP servers for common tasks. See the MCP Catalog.
How do I test if an MCP server works?
mini-a mcp="(cmd: 'ojob mcps/mcp-time.yaml')" goal='What time is it?'
If the MCP server loads correctly, you’ll see its tools listed in the startup output.
Can I create custom MCP servers?
Yes. Any server implementing the MCP protocol (STDIO or HTTP) can be used with mini-a. Point to your server with a full path or URL.
How many MCPs can I use at once?
There’s no hard limit, but using 3+ MCPs is best with proxy mode to reduce overhead:
mini-a mcpproxy=true mcp="[(cmd: 'ojob mcps/mcp-time.yaml'), (cmd: 'ojob mcps/mcp-web.yaml'), (cmd: 'ojob mcps/mcp-db.yaml jdbc=jdbc:h2:./data user=sa pass=sa')]"
Security
Is it safe to enable shell access?
Shell access is off by default. When enabled (useshell=true), consider:
- Keep
readwrite=false(the default) to prevent file modifications - Use
shellallowto whitelist specific commands - Use
shellbanto block dangerous commands - Use Docker for full isolation
# Safe shell access: read-only with allowed commands only
mini-a useshell=true readwrite=false shellallow='git,ls,cat,grep'
How does Docker isolation work?
Run mini-a in a container so the agent can only affect the container environment:
docker run --rm -e OAF_MODEL="(type: openai, model: gpt-5.2, key: '...')" \
-v $(pwd):/work:ro openaf/mini-a useshell=true goal='Analyze the project in /work'
The :ro mount flag ensures files are read-only inside the container.
Are my API keys encrypted?
When using the model manager (modelman=true), keys are stored encrypted on disk. Environment variables are not encrypted but are standard practice for API key management.
Performance
How do I reduce token usage?
- Use dual-model: Set
OAF_LC_MODELfor simple tasks (measure savings on your own tasks) - Compact conversations: Use
/compactor setmaxcontext - Be specific: Precise goals = fewer tokens
- Limit steps: Set
maxstepsto prevent runaway agents
What’s the dual-model strategy?
Set a powerful model for complex tasks and a cheaper model for simple ones:
export OAF_MODEL="(type: openai, model: gpt-5.2, key: '...')" # Complex reasoning
export OAF_LC_MODEL="(type: openai, model: gpt-5-mini, key: '...')" # Routing, summarization
mini-a automatically routes tasks to the appropriate model. Simple operations (summarization, classification, routing) go to the cheaper model, with savings depending on provider prices, task quality, and retries.
How do I monitor costs?
Use /stats in the console to see token counts, model usage, and estimated costs for the current session.
Troubleshooting
“Model not found” error
Check that OAF_MODEL is in the expected SLON/JSON-style configuration format and that credentials are present:
echo $OAF_MODEL # Should show something like: (type: openai, model: gpt-5.2, key: '...')
“Permission denied” when running commands
Shell access is disabled by default. Enable it:
mini-a useshell=true
“Context too long” or truncation warnings
Your conversation exceeded the context window. Solutions:
/compact # Manual compaction
mini-a maxcontext=40000 # Set a limit
/reset # Start fresh
Agent seems stuck or looping
Set a step limit to prevent infinite loops:
mini-a maxsteps=20 goal='...'
Connection errors to LLM API
- Check your internet connection
- Verify the API key is valid and has credits
- Check for rate limiting (
rpm,tpmparameters) - For Ollama, ensure the service is running (
ollama serve)
Web UI not loading
Ensure you specified a port and check for conflicts:
mini-a onport=8080
# If port is busy, try another:
mini-a onport=3000
Still stuck? Open an issue with the error message and your configuration (redact API keys).