File size: 12,597 Bytes
5a4e0ff fce80d1 5727bed 17d402e 4e3f8ff 17d402e 5727bed 17d402e a9876bc 4e3f8ff a9876bc 4e3f8ff 5a4e0ff 17d402e 5727bed 4e3f8ff 17d402e 44de75e 17d402e 44de75e 17d402e 44de75e a9876bc 44de75e 17d402e 44de75e a9876bc 44de75e 17d402e 4e3f8ff 44de75e fce80d1 44de75e fce80d1 44de75e fce80d1 44de75e fce80d1 44de75e fce80d1 44de75e fce80d1 44de75e fce80d1 44de75e 4e3f8ff 44de75e 5727bed 44de75e 5727bed 17d402e 44de75e a9876bc 17d402e 44de75e fc908ed a9876bc 5727bed 44de75e 17d402e a9876bc 5727bed 44de75e 5727bed 44de75e a9876bc 5727bed 44de75e 5727bed a9876bc 5727bed 4e3f8ff 17d402e 44de75e fce80d1 4e3f8ff 44de75e 17d402e a9876bc 17d402e 44de75e a9876bc 17d402e 44de75e 17d402e 44de75e 5727bed 44de75e 5727bed a9876bc 17d402e a9876bc 44de75e a9876bc 1d3594f a9876bc 1d3594f a9876bc 2eea493 44de75e 2eea493 44de75e 4e3f8ff 2eea493 e4af19b fce80d1 e4af19b fce80d1 5a4e0ff fce80d1 44de75e e4af19b 5727bed a9876bc 17d402e a9876bc fce80d1 5c5b617 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | ---
license: mit
tags:
- ai-agent
- agent
- automation
- cli
- daemon
- terminal
- macos
- linux
language:
- en
---
# mona-agent β your computer, with a brain in the cloud
<p align="center">
<strong>The open-source AI agent for your computer.<br/>
Chat from anywhere. It runs commands, manages files and automates tasks β<br/>
private by design, with your AI keys locked in an encrypted cloud vault.</strong>
</p>
<p align="center">
<a href="https://github.com/MONAEXPERT/agent/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
<a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen.svg" alt="Node.js 20+"></a>
<a href="https://github.com/MONAEXPERT/agent/actions"><img src="https://github.com/MONAEXPERT/agent/actions/workflows/ci.yml/badge.svg" alt="CI status"></a>
<a href="https://github.com/MONAEXPERT/agent/blob/main/package.json"><img src="https://img.shields.io/badge/dependencies-1-lightgrey.svg" alt="1 runtime dependency"></a>
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20WSL2-informational.svg" alt="Platforms: macOS, Linux, WSL2">
<img src="https://img.shields.io/badge/security-egress--only%20%7C%20sandboxed-brightgreen.svg" alt="Security: egress-only, sandboxed">
<img src="https://img.shields.io/badge/privacy-AES--256%20vault-blueviolet.svg" alt="Privacy: AES-256 key vault">
<a href="https://huggingface.co/aiagentmona/mona-agent"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-aiagentmona%2Fmona-agent-yellow.svg" alt="Hugging Face: aiagentmona/mona-agent"></a>
</p>
## Contents
- [Private & secure by design](#private--secure-by-design)
- [What it can do](#what-it-can-do)
- [Built for](#built-for)
- [Quickstart β 60 seconds](#quickstart--60-seconds)
- [How mona-agent compares](#how-mona-agent-compares)
- [Documentation](#documentation)
- [Security & compliance](#compliance--trust)
---
## The story
Most AI assistants live in a chat window. They can write you a script β but
they can't run it. They can explain a crash β but they can't look at your
logs. They know everything about your code and nothing about your machine.
**mona-agent is the other half.** It's a small, fast daemon that lives on
your computer β macOS, Linux, WSL2 β and connects it to a brain in the
cloud. You talk to it from your dashboard or your phone; it reasons about
the task, then *actually does it*: checks disk space, restarts a service,
finds a file, opens an app, runs a cleanup. And it streams every step back
so you can watch it think and act in real time.
It's the difference between an advisor and an employee. One tells you what
to do. The other just gets it done.
```
Your Device mona.expert Cloud
+-------------------+ +----------------------------+
| mona-agent | | Dashboard & chat |
| |--- HTTPS ----+ | AI engine (the brain) |
| * executes tools |<-- commands --+ | Agent orchestration |
| * streams metrics| | Key vault (AES-256) |
| * terminal UI |-- results --->+ | Live device monitoring |
+-------------------+ +----------------------------+
```
## Private & secure by design
Your machine is a trust boundary, not a sandbox afterthought.
- **Zero AI keys on your device.** Provider keys (OpenAI, Anthropic, β¦) live
only in the cloud, encrypted AES-256-GCM. The device holds one revocable
token β nothing else worth stealing.
- **Egress-only networking.** The daemon makes outbound HTTPS connections and
listens on localhost only. No open ports, no public exposure β it works
behind NAT and firewalls.
- **Guarded execution.** Commands run through an allowlist; dangerous
patterns (`rm -rf /`, fork bombs, silent `sudo`) are blocked *before*
execution. File access is confined to safe paths with symlink-escape
rejection.
- **Complete audit trail.** Every action β reasoning β tool call β result β
answer β verification β is traced with tokens, cost and latency, and
exportable for audits.
- **Documented, not hand-waved.** A real [threat model (STRIDE)](docs/additional-documents/THREAT-MODEL.md),
[data-flow & minimization](docs/additional-documents/DATA-FLOW.md),
[security self-audit guide](docs/additional-documents/SECURITY-AUDIT.md)
and [EU CRA readiness](docs/additional-documents/CRA-READINESS.md). No fake
certifications β "trust me" isn't a security model.
See [SECURITY.md](SECURITY.md) for the full policy and responsible disclosure.
## What it can do
- **Operate your computer from anywhere** β ask from your phone: *"how's
the disk looking?"*, *"restart nginx"*, *"open Safari"*
- **Think act observe deliver** β a real agentic loop: the cloud
brain plans, the device executes local tools, results flow back, and the
answer lands in your chat β up to 8 tool steps per task
- **Fail is never allowed** β transient errors retry automatically,
failed commands trigger self-diagnosis and a smarter second attempt,
and every task ends with an answer
- **Zero secrets on the device** β no AI provider keys are stored
locally; they live in the encrypted cloud vault. One key. One brain.
- **Live device monitoring** β CPU, memory, disk, load and uptime
streamed to your dashboard every 10 seconds, with history sparklines
- **Terminal-native** β a fast TUI with live logs, or a fully headless
daemon; one command installs it, one dependency powers it
- **Free and open source** β MIT licensed, forever
## Built for
- **Developers** β delegate test runs, log checks and service restarts to a
device you can chat with from your phone.
- **Homelab & server ops** β manage headless boxes, Raspberry Pis and NAS
without SSH; the device polls the cloud, so no open ports are needed.
- **Personal automation** β open apps, check disk, control media, run
scripts from any browser.
- **Kiosks & presentation machines** β restart demo windows and
long-running GUI programs on demand.
- **Compliance-heavy teams** β every action traced and exportable; EU CRA /
NIS2 / AI Act / GDPR documentation included.
More scenarios: [docs/USE-CASES.md](docs/USE-CASES.md).
## Quickstart β 60 seconds
```bash
# 1. Install (needs Node.js 20+)
curl -fsSL https://agent.mona.expert/install.sh | bash
# 2. Log in with your mona.expert key
mona-agent login
# 3. Start the terminal dashboard β or run headless
mona-agent gui
mona-agent start
```
Then open **<https://agent.mona.expert/dashboard>** β your device appears
with live stats, and you can chat with it from the browser.
## Usage
```bash
mona-agent login # save your mona.expert key
mona-agent connect # test the connection end to end
mona-agent gui # terminal dashboard with live log
mona-agent chat "free up disk space" # one-shot conversation
mona-agent exec "uptime && df -h" # run a guarded command
mona-agent start # headless daemon with auto-reconnect
```
In the dashboard chat, just talk normally:
> *"Run `df -h` and tell me my disk usage."* Β·
> *"What's the load average?"* Β·
> *"Open Spotify and play some focus music."*
The brain picks the tool, the device runs it, you get the result.
## Built-in tools
| Tool | What the agent can do with it |
|------|-------------------------------|
| `sysinfo` | CPU, memory, disk, load, uptime, host and platform details |
| `shell` | Run commands β allowlisted by default, full shell opt-in |
| `files` | List, read, write, move, delete β confined to safe paths |
| `net` | HTTP(S) requests, DNS, connectivity checks |
Full reference: **[docs/TOOLS.md](docs/TOOLS.md)**
## How mona-agent compares
| | Typical AI chat | mona-agent |
|---|---|---|
| Can it see your machine? | | live metrics & files |
| Can it execute? | | sandboxed shell & tools |
| Does it retry when things fail? | | auto-debug + retry loop |
| Where do your API keys live? | on your disk | encrypted cloud vault |
| Is every action audited? | | full trace, exportable |
| Install | app + account | one command, one dependency |
## FAQ
**Is mona-agent free?** β Yes. The client is MIT licensed and free
forever; the cloud has a free tier at
[agent.mona.expert](https://agent.mona.expert).
**What data leaves my device?** β Only what the task requires: system
metrics, and the results of commands you asked the agent to run. Nothing
is sent to third parties. See **[docs/GDPR.md](docs/GDPR.md)**.
**Can it damage my machine?** β Commands are allowlisted by default, the
file tool is confined to safe paths, and every action is recorded in the
audit log. Full shell execution is an explicit opt-in.
**Does it run on servers?** β Any Node.js 20+ machine: headless Linux
boxes, Raspberry Pis, home servers. See
**[docs/GETTING-STARTED.md](docs/GETTING-STARTED.md)**.
## Documentation
| Page | Contents |
|------|----------|
| [docs/GETTING-STARTED.md](docs/GETTING-STARTED.md) | Install, login, first steps, troubleshooting |
| [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | Daemon internals, agentic loop, metrics pipeline |
| [docs/TOOLS.md](docs/TOOLS.md) | Tool-by-tool reference with examples |
| [docs/EXAMPLES.md](docs/EXAMPLES.md) | Automation recipes β cron, watchdogs, backups |
| [docs/INTEGRATIONS.md](docs/INTEGRATIONS.md) | Cloud API, scheduling, boot persistence |
| [docs/FAQ.md](docs/FAQ.md) | Frequently asked questions |
| [docs/CHANGELOG.md](docs/CHANGELOG.md) | Release history |
| [examples/](examples) | launchd & systemd units, health check script |
## Compliance & Trust
<a href="docs/COMPLIANCE.md"><img src="https://img.shields.io/badge/EU_CRA-ready-blue.svg" alt="EU Cyber Resilience Act ready"></a>
<a href="docs/COMPLIANCE.md"><img src="https://img.shields.io/badge/NIS2-aligned-blue.svg" alt="NIS2 aligned"></a>
<a href="docs/AI-ACT.md"><img src="https://img.shields.io/badge/EU_AI_Act-transparency_documented-blueviolet.svg" alt="EU AI Act transparency"></a>
<a href="docs/GDPR.md"><img src="https://img.shields.io/badge/GDPR-privacy_by_design-brightgreen.svg" alt="GDPR privacy by design"></a>
<a href="docs/SBOM.md"><img src="https://img.shields.io/badge/SBOM-CycloneDX_1.5-informational.svg" alt="SBOM CycloneDX 1.5"></a>
- **[EU Cyber Resilience Act](docs/COMPLIANCE.md)** β SBOM, vulnerability
handling, secure by design, coordinated disclosure
- **[NIS2](docs/COMPLIANCE.md)** β TOMs, logging, incident support
- **[EU AI Act](docs/AI-ACT.md)** β limited-risk classification,
transparency obligations implemented and documented
- **[GDPR](docs/GDPR.md)** β data minimisation, Art. 30 record, DPA-ready
- **[SBOM](docs/SBOM.md)** β CycloneDX 1.5, one runtime dependency
- **[Security policy](SECURITY.md)** β threat model, disclosure process, supported versions
## Community
**Star the repo** if mona-agent is useful to you β it genuinely helps
others discover the project.
- [GitHub Discussions](https://github.com/MONAEXPERT/agent/discussions) β ideas, questions, show & tell
- [Issues](https://github.com/MONAEXPERT/agent/issues) β bugs and feature requests
- [Hugging Face](https://huggingface.co/aiagentmona/mona-agent) β mirror of this repo
- [agent.mona.expert](https://agent.mona.expert) β the cloud dashboard
- [SECURITY.md](SECURITY.md) β responsible disclosure
## Development
```bash
git clone git@github.com:MONAEXPERT/agent.git
cd agent
npm install
npm test # 26 tests, 9 suites
npm run gui # run the dev build of the TUI
```
Requires Node.js β₯ 20. Plain modern JavaScript (ESM), no build step,
one runtime dependency β deliberately small.
## License
MIT β see [LICENSE](LICENSE). Free forever.
---
**[mona.expert](https://agent.mona.expert)** β one key, one brain, any
device.
## Compliance & standards
Enterprise-ready documentation: [EU CRA readiness](docs/additional-documents/CRA-READINESS.md),
[ISO/IEC 27001 mapping](docs/additional-documents/ISO-27001-MAPPING.md),
[IEC 62443 alignment](docs/additional-documents/IEC-62443.md),
[threat model](docs/additional-documents/THREAT-MODEL.md),
[data flow & minimization](docs/additional-documents/DATA-FLOW.md),
[deployment guide](docs/additional-documents/DEPLOYMENT-GUIDE.md),
[enterprise FAQ](docs/additional-documents/ENTERPRISE-FAQ.md) and
[SBOM](docs/additional-documents/SBOM.md).
See [SECURITY.md](SECURITY.md) for vulnerability reporting.
|