← Back to MAUDE

Documentation

Last updated: March 21, 2026

Overview

Architecture

MAUDE is a multi-model AI operating environment built around a central Python gateway. All clients — the server TUI, Mac/PC CLI, mobile app, and Telegram bot — connect through a single gateway that handles model routing, tool execution, and streaming.

Client (TUI / CLI / Mobile / Telegram)
   │
   ▼
Gateway (port 30000 HTTPS / 30080 HTTP)
   │
   ├── Local models (llama-server, port 30010)
   ├── Cloud models (Mistral API, Anthropic API, OpenRouter)
   ├── Tool execution (100+ tools)
   ├── Browser automation (Playwright)
   ├── Google Workspace (OAuth 2.0)
   └── File server (port 30002)

The gateway makes non-streaming LLM calls in a loop: send the conversation to the model, check for tool calls, execute tools, feed results back, repeat. The final text response is streamed to the client as SSE with real-time tool trace events.

Models

Available Models

mistral
Mistral LargeMistral API

Default. Best all-round with tools.

codestral
CodestralMistral API

Optimized for code generation.

devstral
DevstralMistral API

Frontier code agent (123B, 256K context).

claude
Claude Opus 4Anthropic

Deep reasoning, long context.

sonnet
Claude Sonnet 4Anthropic

Fast, capable, cost-effective.

nemotron
Nemotron 30BLocal (llama-server)

Free. No API key needed.

nemotron-super
Nemotron Super 120BOpenRouter (free)

Cloud inference, no cost.

Switch models in the TUI with /model switch <name>. The gateway resolves short names to full model IDs and routes to the correct provider.

Tools

Tool Categories

File Operations

read, write, edit, search, list, change directory

Shell

run_command (git, pip, python, system commands)

Web

web_search (DuckDuckGo), web_browse, web_view

Vision

view_image (LLaVA analysis of photos, screenshots)

Gmail

list, read, send emails

Google Drive

list, search, read, upload, create docs/sheets/folders

Google Sheets

read, write, append, create

Google Calendar

list, create, update, delete events

Google Slides

get, create presentations, add slides/text

Google Contacts

list, get, create, update, delete, search

YouTube

search, get video/channel, playlists, comments

GitHub

PRs, issues, repos, branches, commits, CI/CD, releases

Browser Automation

open, navigate, click, type, fill forms, screenshot, extract

Social Media

post to X, LinkedIn, Facebook, Instagram (browser-based)

Image Generation

FLUX with LoRA support via ComfyUI

Substack

create/edit drafts, publish, list posts, stats

Memory

save, recall, list, forget (persistent across sessions)

Collaboration

mesh status, dispatch tasks, project management

Scheduling

cron-based task scheduling with natural language

System Monitor

CPU, GPU, RAM, disk, processes, sessions, activity

Sandbox

Docker container for autonomous builds (exec, read, write)

Forge

Autonomous builder: plan, execute, verify, fix loop

AI Delegation

ask_frontier (escalate to Claude/Gemini)

Tools are dynamically filtered per message based on keywords. Only relevant tools are sent to the model, reducing token usage by 30–40%.

Reference

TUI Commands

/model switch <name>   Switch model (mistral, codestral, sonnet, claude, etc.)
/clear                 Clear conversation history
/copy                  Copy last response to clipboard
/keys set <provider> <key>   Set an API key
/keys show             Show configured providers
/help                  Show all commands
/quit                  Exit MAUDE

Reference

Ports & Services

30000
Gateway (HTTPS)Remote clients, mobile app
30080
Gateway (HTTP)Local clients, internal API
30010
llama-serverNemotron local inference
30002
File ServerFile transfers
8998
Voice ServerNemotron ASR + Magpie TTS (WebSocket)

Reference

Configuration Files

variables.env              API keys (MISTRAL, CODESTRAL, CLAUDE, OPEN_ROUTER)
~/.config/maude/keys.json  API keys (managed via /keys command)
credentials.json           Google OAuth 2.0 client credentials
certs/cert.pem             SSL certificate (enables HTTPS on gateway)
certs/key.pem              SSL private key
~/.config/maude/browser_data/  Persistent browser session data
~/.config/maude/memory.db  Persistent memory (SQLite)
data/conversations/        Conversation history (JSON)

Reference

Launcher Commands

./maude          Start all services + open TUI
./maude -n       Start services in background only
./maude stop     Stop all services
./maude status   Show what's running

Background services run in named tmux sessions. The TUI runs in the foreground so terminal copy/paste works normally. Press Ctrl+C to exit the TUI — services keep running.

Knowledge

Best Practice Guides

MAUDE includes 10 markdown-based reference guides that are automatically injected into the system prompt when the user’s message matches relevant keywords. This gives the model domain expertise on demand without permanently bloating the context window — max 2 guides are loaded per turn.

Coding

Architecture, code quality, error handling, security, testing, Python patterns

Website Design

Layout, typography, color, responsive, performance, accessibility, forms

Web Design Patterns

Modals, toasts, loading states, navigation, tables, dark mode, CSS architecture

Graphic Design

Composition, color theory, typography, imagery, icons, brand consistency

Color Theory

Color wheel, harmony systems, psychology, 60-30-10 rule, palette building

Writing

Clarity, structure, tone, technical writing, editing, grammar

API Design

REST conventions, status codes, pagination, auth, versioning, documentation

Prompt Engineering

System prompts, few-shot, chain-of-thought, tool descriptions, image prompts

Image Generation

Prompt structure, composition, lighting, styles, quality modifiers, aspect ratios

Cybersecurity

Authentication, injection prevention, secrets, network hardening, containers

Plugins

Skills

Skills are Python-based plugins registered via a @skill decorator. Each skill is exposed to the LLM as an OpenAI-compatible tool definition with typed parameters and JSON schema. Built-in skills include weather, calculator, stocks, screenshots, image generation, datetime utilities, notes, and system info. User skills can be added to ~/.config/maude/skills/.

/skills              List all installed skills
/skills enable <n>   Enable a skill
/skills disable <n>  Disable a skill
/skills info <n>     Show skill details
/skills run <n> ...  Run a skill directly
/skills reload       Reload all skills

Clients

Client Interfaces

Server TUI

Rich Console chat with prompt_toolkit input, tool traces, thinking spinner. Runs on the server via ./maude.

Mac / PC / Linux CLI

pip install maude-client. Connects over Tailscale. Braille spinner, trace visualization, conversation sync.

iOS & Android App

React + Capacitor native app. Voice chat, SSH terminal, file manager, browser, Telegram viewer.

Telegram Bot

Full tool access via Telegram. Photo analysis, tool execution, cross-channel sync.

Web Dashboard

Command Center with system monitoring, conversation history, and scheduled task management.