Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on macOS
(BETA) AI shouldn't have a meter. Unlimited tokens. Forever. Your machine. Your agent. Use it from anywhere. Terminal-native coding agent powered by local LLMs — 100% open source, free forever, and installed with a single command. Proudly built on C#/.NET, because AI tooling should be infrastructure, not a subscription.
Saved setup from 8 h ago
Will it work on macOS?
<sub>Setup auto-detects GPU, iGPU/APU, and Apple Silicon. No prompts. Pass <code>--options</code> to choose the model, vision, and parallel slots yourself, or <code>--model=<name></code> to pin one. See <a href="#pick-your-model">Pick your model</a> for the menu, flags, and Linux context presets. The pick depends on VRAM <em>and</em> system RAM: on Linux a 24 GB+ card gets Qwen3.8-Flash-Next (Strata) on a 48 GB-class box and Qwen3.8-27B below that, a 16 GB card keeps Qwen3.8-27B, and a 12 GB card and AMD 780M iGPUs (Ryzen 9 7940HS, 32 GB+ RAM) get Ternary-Bonsai-2-27B via Prism. CPU mode runs Qwen on stock llama.cpp (about 20 GB RAM). Linux setup is for Ubuntu and Ubuntu derivatives, tested on Ubuntu 24.04 LTS. On macOS, the full and inference roles require Apple Silicon (M1+); 48 GB+ unified memory is the recommended, tested configuration. 24 to 47 GB and 16 to 23 GB Macs run Ternary-Bonsai (PQ2_0 / PTQ1_0) with a tighter context window. Intel Macs: agent-only mode. macOS 14+ (Sonoma/Sequoia) recommended.</sub>
By default, setup picks a model for the hardware and does not ask. On a terminal, openmono setup --options shows a menu of what this machine can run. The default answer is 1, Qwen on stock llama.cpp (always available, the safe default). Pin one with --model=qwen|bonsai-pq2|bonsai-ptq1|flash-next. Shorthands: --qwen, --bonsai, --bonsai-ptq1, --flash-next.
Qwen is stock llama.cpp, including CPU mode (about 20 GB RAM). Bonsai 2 27B is a ternary build on the PrismML llama.cpp fork (PQ2_0 about 7.2 GB, PTQ1_0 about 5.9 GB). On Linux it runs on an NVIDIA GPU, or on the AMD Ryzen 9 7940HS iGPU (Radeon 780M) through the Prism Vulkan image. There is no CPU image. It keeps a real 27B on 12 GB NVIDIA cards, where Qwen drops to a 9B, and it is the auto-pick on that iGPU. Qwen3.8-Flash-Next runs on Strata: Linux, an NVIDIA GPU, and a 48 GB-class box (about 44 GiB or more of system RAM), with weights streamed from disk. Setup auto-picks it on those boxes when the card has 24 GB or more of VRAM. Otherwise it appears only in the --options menu, and only when the machine can run it.
Linux context presets, before the vision trim: Bonsai 196,608 on 24 GB, 131,072 on 16 GB, 98,304 on 12 GB, 32,768 on 8 GB. Qwen 196,608 on 24 GB and 180,224 on 16 GB. On a 24 GB card the two match. Bonsai's benefit is fitting a 27B model in less VRAM, not a longer window. Vision is on by default and trims the 24 GB preset to 172,032 for both (a 16 GB card goes to 98,304 for both).
Heads-upBuilding it yourself? It also needs 26 settings in .env (3 secret).
The maintainers included scripts/install.sh. Run it from the cloned folder after reading it.
bash scripts/install.sh
Also: scripts/install-host-bridge.sh, scripts/install_macos.sh, scripts/install_prereqs.sh, install.ps1
docs/SETUP.md[!NOTE] Strata (Qwen3.8-Flash-Next) is the default on high-end Linux boxes — an NVIDIA card with 24 GB+ VRAM behind 48 GB-class RAM. Other Linux boxes default to Qwen3.8-27B or Bonsai on llama.cpp; see MODELS.md. On a qualifying box Strata serves an OpenAI-compatible API at
http://127.0.0.1:7474/v1. See STRATA.md for requirements, install/start/stop, dual-box relay, and switching back to the legacy llama.cpp path (OPENMONO_INFERENCE_BACKEND=llama).
| | | |--|--| | OS | Ubuntu and Ubuntu derivatives (tested on Ubuntu 24.04 LTS) · macOS 14+ (Sonoma/Sequoia) | | GPU mode (Linux) | NVIDIA GPU · 12 GB VRAM minimum · 24 GB recommended | | CPU mode (Linux) | 24 GB RAM | | Apple Silicon (macOS) | M1+ · 48 GB+ unified memory recommended (tested) · 24–47 GB and 16–23 GB run Bonsai with a tighter context · 16 GB minimum | | Disk | ~22 GB free (model + ~900 MB vision projector) |
[!NOTE] Both Linux and macOS use the same install command — the installer detects your OS and architecture automatically. Intel Macs are supported in agent-only mode; native inference requires Apple Silicon. See macOS notes below.
bash <(curl -fsSL https://raw.githubusercontent.com/StartupHakk/OpenMonoAgent.ai/refs/heads/main/get-openmono.sh)
The installer will ask you one question before it does anything:
[!IMPORTANT]
What do you want to install on this machine?
- Both — agent + inference server on one box (single-box mode)
- Inference server only — inference box that runs the model (dual-box mode)
- Agent only — laptop/workstation that talks to a remote inference server
Picking 2 or 3? See the Dual-box setup section below for the final connection steps.
| Option | Pick this if… | |--------|--------------| | 1 — Both | You have one machine and want everything on it | | 2 — Inference | Dedicated inference box — do this first, then run option 3 on your agent box | | 3 — Agent | Your agent box — run this after option 2 is set up on the inference box |
[!TIP] Not sure? Pick 1. If you have a GPU, this is the best starting point. If you're on CPU, make sure you have at least 24 GB RAM — the machine needs to run both the model and the agent. If you'd rather keep model load on a separate machine, go for 2 and 3.
The install runs in two phases, each with its own [1/8] → [8/8] progress.
Phase 1 installs prerequisites: Docker, .NET 10 SDK 10.0.403+ / runtime 10.0.14 (the October 2026 security patch), build tools, and the NVIDIA stack if a GPU is found. If an older .NET 10 SDK is already present, setup offers to install the patched SDK side-by-side; non-interactive runs do so automatically (OPENMONO_DOTNET_UPDATE=0 opts out).
Phase 2 downloads the model, builds Docker images, and starts the inference server.
If an NVIDIA GPU is detected, Phase 1 asks:
NVIDIA GPU Detected
Would you like to install on GPU? (Y/n):
Say Y.
If the NVIDIA drivers are being installed fresh, a reboot is required:
NVIDIA drivers installed — reboot required
Would you like to reboot now? (Y/n):
ℹ After reboot, run: ~/openmono.ai/openmono setup
[!IMPORTANT] After rebooting, use the full path —
openmonowon't be on your PATH until setup fully completes:~/openmono.ai/openmono setupThe installer picks up at Phase 2 automatically.
The only slow step. The installer picks the right model from your GPU and system RAM — first match wins, and the full policy is in MODELS.md:
| GPU / RAM | Model | Size | Accuracy | Context (vision on) | |-----------|-------|------|----------|---------------------| | NVIDIA 24 GB+ VRAM and 48 GB-class RAM | Qwen3.8-Flash-Next (Strata) | ~70 GB | Full | Strata picks per box | | NVIDIA 24 GB+ | Qwen3.8-27B-Q4_K_M | ~15.5 GB | Full | 168k | | NVIDIA 16 GB | Qwen3.8-27B-UD-IQ3_XXS | ~12 GB | Lower | 96k | | NVIDIA 12 GB | Ternary-Bonsai-2-27B PQ2_0 | ~7.2 GB | 27B (ternary) | 96k | | AMD iGPU (7940HS / 780M), 32 GB+ RAM | Ternary-Bonsai-2-27B PQ2_0 | ~7.2 GB | 27B (ternary) | 168k | | CPU | Qwen3.6-35B-A3B-UD-Q4_K_XL | ~17.6 GB | Full | 168k |
Model, vision and parallel slots are hardware-defaulted — none of the three is
asked. Pass --options to choose them yourself, or --model=<name> to pin one.
(The role and GPU prompts in Phase 1 still ask; see above.)
The installer also downloads the multimodal projector (mmproj, ~900 MB) for each model, which enables vision. A reduced context size is set automatically to keep the projector within VRAM/RAM budget. To disable vision and recover the extra context, see disabling vision below.
[!NOTE] These are the default models for each tier. If you have more VRAM or RAM available, you can swap to a higher quant for better accuracy — or a lower quant to free up memory. Context size is also configurable: a larger window gives the agent more working memory but requires more RAM. Both can be changed in
settings.jsonviallm.modelandllm.contextSize, or by editingdocker/docker-compose.override.ymldirectly.
To override auto-detection:
openmono setup --gpu # force GPU (NVIDIA only)
openmono setup --cpu # force CPU
[!NOTE] You may see a
.NET SDK not installedwarning at the start of Phase 2 — safe to ignore. The SDK was just installed but the current shell session hasn't loaded it yet.
[!TIP] Full install log is saved to
~/.openmono/logs/setup-<timestamp>.log
When setup finishes you'll see:
────────────────────────────────────────────────────────────
Setup Complete
────────────────────────────────────────────────────────────
✓ OpenMono.ai is ready to use!
Your machine is configured for single-box mode (agent + inference).
Next steps:
1. cd your-project/
2. openmono agent # Start the agent
Other commands:
openmono status # Show llama-server status
openmono config # Configure settings
Troubleshooting:
If openmono or docker are not found, reload your shell:
newgrp docker # Activate docker group (Linux only)
source ~/.bashrc # Reload shell config (bash)
exec $SHELL # Reload shell
Full help: openmono --help
────────────────────────────────────────────────────────────
Reload your shell so the openmono command is on your PATH:
source ~/.bashrc # macOS / zsh: source ~/.zshrc
[!NOTE] On macOS there's no
dockergroup — skip thenewgrp dockerstep. Ifopenmonoisn't found, runsource ~/.zshrcor open a new terminal.
If openmono or docker are still not found after that:
newgrp docker # activate docker group without logging out
exec $SHELL # reload shell
Confirm the inference server is running:
openmono status
Navigate to any project and start the agent:
cd your-project/
openmono agent # TUI — interactive panel layout (default)
openmono agent --classic # CLI — plain scrolling terminal
Once it's running, just type what you need in plain English:
Explain what this codebase does
Find all usages of AuthService
Fix the failing tests in UserController
Refactor this function to be async
Add error handling to the payment flow
OpenMono navigates your codebase, proposes solutions, and executes changes with full transparency. You stay in control throughout — the agent shows its work at every step and asks before writes and commands. Read-only tools are auto-approved.
[!TIP] Type
/thinkto enable step-by-step reasoning mode — best for complex bugs, large refactors, and architecture decisions. Turn it off for simple lookups and quick edits.
openmono start # start the inference server
openmono stop # stop everything
openmono restart # restart the inference server
openmono status # container · model status
openmono logs # tail live inference logs
openmono help # list all commands
macOS is supported alongside Linux — the same install command works on both, and the installer routes to the macOS path automatically when it detects Darwin.
bash <(curl -fsSL https://raw.githubusercontent.com/StartupHakk/OpenMonoAgent.ai/refs/heads/main/get-openmono.sh)
| | Linux | macOS (Apple Silicon) |
|--|-------|------------------------|
| Inference | llama.cpp in Docker (CUDA/CPU) | llama.cpp native on the host (Metal GPU) |
| Agent sandbox | Docker | Docker (Docker Desktop or Colima) |
| Acceleration | NVIDIA CUDA | Apple Metal — automatic |
| Connection | localhost | container reaches the host via host.docker.internal |
On Apple Silicon the model runs natively so it can use the Metal GPU and unified memory directly — Docker can't pass the GPU through on macOS. The agent still runs in a Docker container and talks to the native llama-server. Inference config is written to ~/.openmono/settings.json and the generated API key is stored in docker/.env.
Phase 1 installs, via Homebrew where needed:
git, curl, jq, cmake, ripgrep, openblas, pkg-config, python3 (3.10+)~/.dotnet; an older 10.x is upgraded side-by-side after a promptThe installer reads hw.memsize and picks the model for your memory tier:
| Unified memory | Model | Accuracy | Context (vision on) | Status | |----------------|-------|----------|---------------------|--------| | 48 GB+ | Qwen3.6-35B-A3B-UD-Q4_K_XL | Full | 192k (168k) | ✅ Recommended / tested | | 24–47 GB | Ternary-Bonsai-2-27B PQ2_0 | 27B (ternary) | 64k | Default; newer Metal path | | 16–23 GB | Ternary-Bonsai-2-27B PTQ1_0 | 27B (ternary) | 16k | Default; ~8–10 tok/s on a 16 GB M4 mini (see MODELS.md) |
[!IMPORTANT] 48 GB+ unified memory is the recommended, tested configuration — full-accuracy 35B model at the full 192k context. 24–47 GB and 16–23 GB Macs default to Bonsai (PQ2_0 / PTQ1_0), which replaced the old 9B fallback: at ~7.2 GB and ~5.9 GB of weights it leaves the headroom unified memory needs while still being a real 27B. Bonsai is the newer Metal path, so
--model=qwenis the escape hatch if a Mac of that size misbehaves — on the Qwen tiers a 32 GB Mac gets 64k (48k with vision) and a 16 GB Mac gets 16k (12k). 16 GB is the hard floor: below it the full and inference roles refuse to install — use the agent role and point it at a separate inference server. Vision (mmproj) downloads automatically and trims the context on the Qwen tiers to keep the encoder within the memory budget; the Bonsai presets are already sized for it, so vision costs them nothing.
Intel Macs have no Metal GPU and no unified memory, so native inference is unsupported. The installer allows only the agent role on Intel — it runs the agent locally and connects to a separate Apple Silicon or Linux inference box (see Dual-box setup).
Run the model on a dedicated inference box and connect from your laptop over the internet. No port forwarding required — the tunnel is established outbound from the inference box.
On the same LAN/VPN, or running the agent on a server box? See DEPLOYMENT-MODES.md — it covers single-box mode, the direct-LAN split (no relay account), and the server-ops runbook (pull a repo, deploy, troubleshoot a backend).

On the inference box, run the installer and pick 2 — Inference server only:
bash <(curl -fsSL https://raw.githubusercontent.com/StartupHakk/OpenMonoAgent.ai/refs/heads/main/get-openmono.sh)
Select 2 when prompted. The installer downloads the model and starts llama-server. No agent is installed on this machine.
Confirm it's running:
openmono status
Still on the inference box, run tunnel setup:
openmono tunnel setup
You'll receive a one-time verification code. Enter it at app.openmonoagent.ai — you'll get an email with a step-by-step guide including your relay endpoint and API key.
[!NOTE] The code expires in 15 minutes.
Then start the tunnel:
openmono tunnel start
Confirm the tunnel is up:
openmono tunnel status
Once the inference box is running and the tunnel is up, switch to your laptop and run the installer there:
bash <(curl -fsSL https://raw.githubusercontent.com/StartupHakk/OpenMonoAgent.ai/refs/heads/main/get-openmono.sh)
Select 3 when prompted. This installs the agent but skips Docker, model download, and llama-server — the laptop needs no GPU.
Using the endpoint and API key from the email in Step 2:
openmono config set llm.endpoint http://relay.openmonoagent.ai:<port>
openmono config set llm.api_key <token>
cd your-project/
openmono agent
The agent on your laptop sends requests through the relay to the inference box.
[!NOTE] Don't have a relay account? Sign up free at app.openmonoagent.ai.
openmono tunnel start # start the frpc tunnel
openmono tunnel stop # stop the tunnel
openmono tunnel restart # restart
openmono tunnel status # show tunnel state + configured target
openmono tunnel logs # tail frpc logs
[!CAUTION] 401 Unauthorized — the API key on your laptop doesn't match the one on the inference box.
Check both values:
# On the inference box grep LLAMA_API_KEY docker/.env # On the laptop openmono config get llm.api_keyIf they differ, copy the inference box value to the laptop:
openmono config set llm.api_key <value-from-inference-box>
[!NOTE]
dotnet --list-sdksexits 137 on macOS — the OS killed the .NET host before it started (Taskgated Invalid Signature). A previous install rewrote~/.dotnet/dotnetin place, and macOS keeps the old code-signature state for that file even though the binary is valid. Setup detects this and re-creates the host automatically; to fix an existing install by hand:cd ~/.dotnet cp -p dotnet .dotnet.new && mv -f .dotnet.new dotnet ./dotnet --list-sdks
Vision is on by default on inference boxes, and asked during install only
with --options — the llama.cpp and Strata installers otherwise take the
default, because on those boxes the choice controls a real ~900 MB download. On
an agent box nothing
is asked: whether the remote endpoint actually serves images is detected at
startup from the server's own /props capabilities (modalities.vision), so
there is no install-time guess to go stale. The install choice is persisted to
~/.openmono/settings.json under "inference": { "vision_enabled": true },
which is the single source of truth for every launch path (extension,
host-bridge, and compose all mount ~/.openmono into the agent container).
An explicit value there also overrides the agent-side auto-detection — to
change it later:
openmono config set inference.vision_enabled true # allow image input
openmono config set inference.vision_enabled false # text only
The OPENMONO_VISION_ENABLED=1 environment variable still works as a one-off
override when the setting is unset. Non-interactive installs take the default:
vision on for Strata (it needs ~1–2 GB extra headroom — opt out with
STRATA_VISION=no) and the catalog default on llama.cpp (on when the model
ships a projector). To toggle
the projector weights themselves, re-run openmono setup — or on an existing
Strata install: STRATA_VISION=yes bash scripts/strata.sh install (reconfigures
without re-downloading the base model).
Use the @filename syntax to attach an image alongside your message:
@screenshot.png what's wrong with this UI?
@diagram.jpg explain this architecture
Supported formats: PNG, JPG, JPEG, GIF, WebP. Images are automatically compressed before being sent — see Image compression below.
You can also ask the agent to read an image file directly:
Read src/assets/logo.png and describe it
Image token budget — controls how many tokens each image is allocated in the context window. Set in docker/docker-compose.override.yml:
--image-min-tokens 1024 # minimum tokens per image (lower = faster, less detail)
--image-max-tokens 1280 # cap per image — raise to 2048 for more detail, costs more context
A single image at the default budget uses ~1024–1280 tokens. If you're sending multiple images per message, reduce --image-max-tokens to keep context usage predictable.
Image compression — handled client-side by SkiaSharp before the image reaches the model:
VRAM at startup and VRAM mid-session are different things. When the server first loads, the model and mmproj are resident and the remaining headroom looks comfortable. During inference, two things grow on top of that: the KV cache (every processed token occupies space here) and a prompt cache (llama.cpp caches KV states from previous requests to speed up repeated context — defaults to 8192 MiB). Both accumulate as the conversation continues.
Each image adds roughly 1,000–1,280 tokens to the KV cache on top of the text. After a few exchanges the headroom that looked available at startup may be significantly reduced, and the vision encoder needs a short burst of extra VRAM each time it processes a new image. If that burst can't be satisfied, the server will crash with an out-of-memory error.
If you run into this, two knobs in docker/docker-compose.override.yml:
--cache-ram 2048 # cap prompt cache at 2048 MiB instead of the default 8192 MiB
--cache-ram 0 # disable prompt cache entirely — maximum headroom, no prefix caching
--cache-reuse 256 # raise the reuse threshold — only reuse cached KV if ≥256 tokens match;
# doesn't reduce cache size but avoids cache thrash on short prompts
The mmproj uses ~1–2 GB of VRAM/RAM and reduces the context window to compensate (e.g. 192k → 168k on the 24 GB tier). To disable it and recover that context:
docker/.env and clear MODEL_MMPROJ= (set it to empty)CTX_SIZE=196608 (the value printed during setup)docker compose up -d llama-serverOr set OPENMONO_VISION_ENABLED=0 to prevent the CLI from sending images without unloading the projector from the server
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Compare yours with the README's “Supported Hardware” list above before installing anything.
Needs Git: xcode-select --install
git clone https://github.com/StartupHakk/OpenMonoAgent.ai.git cd OpenMonoAgent.ai
.NET SDK 10.0.403
brew install --cask dotnet-sdk
dotnet restore OpenMono.sln dotnet build OpenMono.sln
dotnet test OpenMono.sln
One command. Auto-detects an NVIDIA GPU, the AMD Ryzen 9 7940HS iGPU (Radeon 780M), CPU, or Apple Silicon. Installs model, runtime, and Docker containers.
bash <(curl -fsSL https://raw.githubusercontent.com/StartupHakk/OpenMonoAgent.ai/refs/heads/main/get-openmono.sh)
Then from any project:
openmono agent # TUI mode (default)
openmono agent --classic # classic scrolling terminal
<sub><a href="docs/SETUP.md">→ Full command reference</a>. Daily commands, setup flags, GPU/iGPU options · <a href="https://openmonoagent.ai/contact">Need help? Book a call</a></sub>
<br/> <div align="center"> <img src="docs/assets/tui-snapshot-openmono.png" alt="OpenMono TUI" width="780" /> </div>No reports for macOS yet.
GitManual AI Agent reads the 5 key files and writes a step-by-step guide for macOS. Once written, it's saved for everyone.