127.0.0.1:11435 · Single Rust binary · Linux & macOS

Fylgia

Your AI agent's sovereign companion — one Rust binary between every coding agent and your machine.

Stops coding agents from burning $100 in a runaway loop or leaking .env secrets — 60-second setup, zero infra. Drop-in loopback proxy for Anthropic /v1/messages, OpenAI /v1/chat/completions, and /v1/responses.

SHA-256 verified · supports --dry-run
$curl -fsSL https://fylgia.dev/install.sh | sh

60-Second Quickstart

No Docker, no Node, no Python daemon required.

01 / BOOTSTRAP
fylgia up

Hardware-aware local LLM detection (Ollama, LM Studio, llama-server) + cloud provider env scan, generating 0600 config & proxy token.

02 / AUTO-WIRE
fylgia wire

Surveys installed coding agents and auto-wires up to 26 harnesses + local fylgia mcp-server with automatic .fylgia.bak backups.

03 / OBSERVE
fylgia report

Live spend ledger, tier downshifts, DLP redaction hits, and token savings across local, peer-local, cheap, and frontier models.

Interactive Terminal Demos

Real proxy headers, fail-closed 402 breakers, and local DLP/BM25 memory.

fylgia proxy · SAAR 5-layer router
# 1. Coding agent sends `fylgia/auto` to loopback proxy (127.0.0.1:11435)
$ curl -i http://127.0.0.1:11435/v1/chat/completions \
  -H "Authorization: Bearer $FYLGIA_PROXY_API_KEY" \
  -H "X-Fylgia-Session-Id: sess-edit-42" \
  -d '{"model":"fylgia/auto","messages":[{"role":"user","content":"rename foo to bar in src/lib.rs"}]}'

HTTP/1.1 200 OK
X-Mycel-Tier: local
X-Mycel-Model: qwen3:8b
X-Mycel-Budget-State: healthy
X-Fylgia-Phase: small_edit
X-Fylgia-Continuity-Lock: none
X-Fylgia-Escalated: false

# 2. Verification-driven escalation on failed tool output (exit code != 0 / panic / test failure)
#    Tier ladder: Local -> PeerLocal -> Cheap -> Frontier (respecting warm-cache hysteresis)
HTTP/1.1 200 OK
X-Mycel-Tier: cheap
X-Fylgia-Phase: debug
X-Fylgia-Continuity-Lock: active_tool_loop
X-Fylgia-Escalated: true

26-Harness Auto-Wiring

Detected and configured by fylgia wire (proxy + MCP).

Pi proxy+mcp Claude Code proxy+mcp OpenCode proxy+mcp Codex proxy+mcp Hermes proxy Agy mcp Grok mcp Cursor Agent mcp OMP proxy+mcp Kilo proxy+mcp Gemini CLI mcp Copilot mcp Devin mcp Droid mcp Kimi mcp Qwen mcp Kiro mcp Amp mcp Goose proxy Cline proxy+mcp OpenClaw proxy QoderCLI mcp MastraCode mcp Letta mcp Maki mcp Muse mcp

Personal Data Sovereignty

Your prompts, keys, and memory belong to your machines.

  • Zero mandatory cloud: runs 100% locally on loopback; telemetry & OTLP are disabled by default.
  • 0600 local files: config, proxy.token, redacted JSONL audit ledger, and BM25 memory stay owner-only.
  • E2E-encrypted CRDT fleet sync: device-to-device state sync encrypted with x25519 + ChaCha20-Poly1305.
  • Opt-in Nostr mailbox: enabled = false and relays = [] by default — zero network calls or metadata leaks unless configured.
  • Revoke any peer: fylgia mesh revoke <device_id> removes a compromised device from trusted peers.
  • Encrypted sovereign backup: fylgia export backup.enc packages memory, config, and keys under ChaCha20-Poly1305.
  • Clean cryptographic wipe: fylgia nuke --confirm (with --dry-run preview) wipes local state cleanly.
  • Cross-OS isolation: Linux bwrap (fail-closed default), macOS Seatbelt, or opt-in rootless Podman/Docker.

Why “Fylgia”?

Something is already walking beside your agents in the dark.

fylgja /ˈfɪl.ɡjɑ/ · Old Norse: “the follower,” “the fetch”

In Old Norse folklore, every person walks with an unseen double — a fylgja. It slips into rooms moments before you arrive, stands watch at the threshold while you sleep, and carries the memory of where you have been. You almost never see it in daylight.

The sagas say a fylgja only reveals itself at the exact moment something is about to go terribly wrong — a warning in a dream, a shadow blocking the doorway, a cold hand pulling you back from the dark. Once bound to its host, it cannot be bought, rented, or turned against you.

That is what sits on 127.0.0.1:11435 at 3:00 a.m. Silent on every healthy turn. Watching every outbound payload before it crosses the wire. Stepping into the doorway with an HTTP 402 the instant an unattended loop starts bleeding your wallet, or swallowing a leaked .env secret before it ever leaves your machine.

◆ If you see your fylgia, it means something on the wire was about to cost you.