Mira Code Reference
Complete reference documentation for all Mira Code CLI flags, environment variables, configuration files, and the permission system.
CLI Flags
Mira Code supports the following command-line flags:
Environment Variables
You can configure Mira Code behavior using environment variables:
# Add to your ~/.bashrc or ~/.zshrc export MIRA_API_KEY="sk-mira-your-key-here" export MIRA_MODEL="mira-pro" export MIRA_BASE_URL="https://api.vmira.ai"
Configuration Files
Global Configuration
Global configuration is stored at ~/.mira.json and applies to all projects:
{
"apiKey": "sk-mira-your-key-here",
"theme": "dark",
"autoUpdates": true,
"verbose": false
}Project Configuration
Project settings are stored at .mira/settings.json in the project root and override global settings:
{
"permissions": {
"allow": ["Read", "Edit", "Write", "Bash(npm test:*)"],
"deny": ["Bash(rm *)"]
},
"env": {
"MIRA_MODEL": "mira-pro"
}
}Key Options
Global config (~/.mira.json)
Project settings (.mira/settings.json)
Permission System
Mira Code uses a permission system to control access to files and commands. Each action can be in one of three modes:
- ask — Ask for confirmation before each action (default for write and command execution)
- auto — Perform action without confirmation (default for file reads)
- deny — Completely block the action
Supported File Types
Mira Code works with all text files and provides syntax highlighting for 50+ programming languages, including:
TypeScript, JavaScript, Python, Rust, Go, Java, C, C++, C#, Ruby, PHP, Swift, Kotlin, Dart, Lua, Scala, Haskell, Elixir, Clojure, HTML, CSS, SCSS, SQL, GraphQL, YAML, JSON, TOML, Markdown, Dockerfile, Terraform, and many more.