1curl -fsSL https://raw.githubusercontent.com/automagik-dev/mikro/main/scripts/install.sh | bash
~/.mikro/mikro, builds it, and links the mikro command into ~/.local/bin, which must be on your PATH. mikro is installed from git and is not published to npm.1mikro --version
mikro v1.260909.1. Later, mikro update fetches the newest main commit and rebuilds in place.1mikro config set GEMINI_API_KEY your-api-key-here
1mikro config set GEMINI_API_KEY your-key
~/.mikro/settings.json with 0600 permissions. A model.provider, model.model or model.sub-call-model set here takes precedence over the model: block in a project's .mikro/mikro.yaml. Set model.sub-call-model whenever you change the provider, because the mikro.yaml that mikro scaffolds names a Gemini model for llm_query() sub-calls, and that model fails on any other provider.1mikro init
.mikro/ directory holding mikro.yaml, with sensible defaults and inline comments explaining every option, plus SYSTEM.md, CRITERIA.md and TOOLS.md. You can skip this step: mikro scaffolds .mikro/ on the first query if no config exists.1mikro "How does authentication work?" --context ./src/ --ext .ts,.js
FINAL() with the answer. A --context directory loads only .md files unless you pass --ext or set context.extensions in mikro.yaml.123456$ mikro "How does authentication work?" --context ./src/ --ext .ts,.js Authentication uses JWT tokens issued by the /auth/login endpoint. The middleware in src/middleware/auth.ts validates tokens on every request and attaches the decoded user to req.user. Refresh tokens are stored in HttpOnly cookies with a 7-day expiry.
1234567891011121314# Directory of docs (recursively loads .md files by default) mikro "Summarize the API" --context ./docs/ # Single file mikro "What are the key findings?" --context paper.md # Any single file other than JSON is read as one string mikro "Analyze this dataset" --context data.csv # Piped query: stdin is read as the query when no query argument is given echo "Summarize the API" | mikro --context ./docs/ # Custom file extensions mikro "Review this code" --context ./src/ --ext .ts,.js,.py
--context.| Mode | Flag | Description |
| text | --output text (default) | Plain text answer to stdout |
| json | --output json | Structured JSON with answer, references, usage stats |
| stream | --output stream | JSONL events per iteration, then a final event |
context variableFINAL() with its answer