Wirken is the enterprise gateway for autonomous agents: the switchboard between your team's messaging channels and the AI agents working on their behalf.
$ npx -y skills add gebruder/wirken --agent claude-code
Wirken is the enterprise gateway for autonomous agents: the switchboard between your team's messaging channels and the AI agents working on their behalf. Your people reach it from a browser or the chat platforms they already use, and the agent on the other end reads files, calls APIs, and runs tools for them. Each channel gets its own line.
Wirken is built for the security team that has to answer for what those agents do. It assumes any agent can be turned against you, and boxes in what a compromised one can reach.
It ships as a single static Rust binary, so it runs wherever your controls require: a locked-down workstation, a server inside your network, or an air-gapped host. Its model connection is provider-agnostic: frontier APIs, local weights through Ollama, TEEs for encrypted processing, Swiss- and EU-hosted endpoints, or a ChatGPT plan the operator has, all interchangeable. Each agent runs the model you assign it, capped by a per-agent spend budget. MIT licensed.
A message comes in on a channel, Wirken wakes an agent to handle it, and every file it reads, API it calls, and tool it runs passes through Wirken's controls first.
Prerequisites: Linux (x86_64 or aarch64), macOS (Intel or Apple Silicon), or
Windows 11 (x86_64); at least one model endpoint; and Docker if you want shell
commands sandboxed, which is the default. Without Docker the agent cannot run
shell commands, and stdio MCP servers do not start: each one runs in its own
container unless its mcp.json entry sets "sandbox": "off" to run it on the
host (docs/mcp.md).
curl -fsSL https://raw.githubusercontent.com/gebruder/wirken/main/install.sh | sh
wirken setup
wirken run
Pin the installer before piping. The committed install.sh has this SHA-256:
085faf0359384403e4e80d1e75734b84cec7ce92182d9012c7879f9bc681fb70
curl -fsSL https://raw.githubusercontent.com/gebruder/wirken/main/install.sh | sha256sum
What the installer verifies, and how to check a release by hand: docs/signing.md.
Prebuilt binaries cover Linux (x86_64, aarch64), macOS (x86_64, Apple Silicon), and Windows 11 (x86_64). The Linux binaries are statically linked against musl with no glibc dependency. The bash installer does not apply on Windows; see docs/windows.md for that path and the feature-set differences.
wirken run spawns adapter processes, accepts authenticated connections,
routes messages to the agent, and serves a WebChat UI at
http://127.0.0.1:18790; log in with wirken webchat open --browser:
wirken v3.0.0
──────
Provider: ollama/llama3.2
Ollama version: 0.19.0
Route: Telegram -> agent:default
WebChat: http://127.0.0.1:18790 (log in with `wirken webchat open`)
Wirken running. Press Ctrl+C to stop.
All local services bind to 127.0.0.1. Wirken never instructs you to bind inference servers, WebChat, or any local endpoint to 0.0.0.0.
Running modes. Interactive (wirken run in the foreground), browser (the
same command serves WebChat), in the terminal (wirken chat, a channel of
the running gateway), as a service (wirken setup --install-service
installs a systemd user unit or launchd agent), or scheduled (wirken preset schedule <name> runs preset agents on a cron schedule with no human in the
loop, under the same permission and audit controls). Service and scheduled
modes are Linux and macOS only.
install.sh, as above.git clone https://github.com/gebruder/wirken && cd wirkenscripts/demo/stage.sh up, then scripts/demo/stage.sh ask; scripts/demo/README.md is the runbook.Lyrik on code you don't trust: docs/lyrik.md
lists each protection a Lyrik run has against a hostile target and the test
that proves it. From the clone, on Linux with git and util-linux script:
cargo test -p wirken-cli --test lyrik_team_files_stay_locked --test lyrik_run_reaches_no_network \
--test lyrik_provenance_runs_nothing_the_repo_configures --test lyrik_exec_sandbox_only \
--test lyrik_signoff --test lyrik_inference_matches_the_chain
Removing the data directory destroys the audit log with it. Export first if any retention need applies:
wirken audit log --format json > wirken-audit-export.json
cp ~/.wirken/audit.db wirken-audit-backup.db
Then, in order, because the first two steps call the binary:
wirken setup --uninstall-service # systemd unit or launchd plist
wirken preset unschedule zirkel # repeat per installed preset
rm "${WIRKEN_INSTALL_DIR:-$HOME/.local/bin}/wirken"
rm -rf ~/.wirken # vault, device key, audit chain
Residue those steps do not touch: a WIRKEN_VAULT_PASSPHRASE line in your
shell profile; OS keychain items, if you built with the keychain-macos or
keychain-linux feature rather than the default age-file backend; and the
bots, apps and tokens you created at each platform, which stay live until you
remove them there. See docs/channels.md.
Each channel runs as its own process and starts with only its own credentials, which the gateway hands it at spawn. The gateway holds the vault and is the only process that opens it: the MCP proxy, too, starts with the credentials its MCP configs name handed over at spawn, and asks the gateway to refresh OAuth tokens. No process the gateway starts holds the vault passphrase. The gateway writes the audit log, and the MCP proxy appends its server-verification and server-lifecycle rows. Each stdio MCP server runs in its own container, started and restarted by the MCP proxy. The agent is stateless: it is woken for each message and rebuilt from its session log.
The message path, inbound to outbound:
graph TD
Channels["Telegram · Discord · Slack · Teams · Matrix · WhatsApp · Signal · Google Chat · iMessage · Terminal"]
Channels -- "UDS · Ed25519 · Cap'n Proto" --> Registry[Adapter Registry]
subgraph Wirken
Registry --> Senders["Sender Allowlist · adapter channels"]
Senders --> Detect[Injection Detection]
Detect --> Router
Router -- "resolve" --> Factory[AgentFactory]
Factory --> Agent[Agent Runtime]
Agent --> Context[Context Engine]
Agent --> Skills
Agent --> Tools
subgraph Execution
Tools --> Sandbox[Docker / gVisor]
end
end
Agent -- "spawn_subagent" --> Factory
Agent -- HTTPS --> LLM[LLM Providers]
Agent -- "declared cost" --> Budget[Budget Gate]
Budget -- "UDS" --> McpProxy["MCP Proxy · separate process"]
McpProxy -- "stdio, one container each · HTTP · OAuth2" --> McpServers[MCP Servers]
Agent --> Outbound["Outbound Dispatch · message_loop writer, OutboundDispatcher"]
Outbound -- "OutboundMessage · correlation handle" --> Channels
Who approves, who holds secrets, and what reaches the record:
graph TD
Operator["Operator · CLI"] -- "approve · deny · expiry" --> Permissions
Permissions --> PermsDb[("permissions.db")]
Operator --> Vault --> Keychain
Agent[Agent Runtime] --> Permissions
McpProxy[MCP Proxy] -- "OAuth refresh · its credentials only" --> Gateway --> Vault
Detect[Injection Detection] -.-> SessionLog
Permissions -.-> SessionLog
Tools -.-> SessionLog
Outbound["Outbound Dispatch"] -. "delivery_confirmed · delivery_failed" .-> SessionLog
SessionLog["Session Log · per-session hash chain, attested"] -.-> SIEM[SIEM / Webhook]
The reasoning behind each boundary is in docs/architecture.md; which guarantees the compiler enforces and which are runtime policy is in docs/enforcement-model.md.
Wirken contains the blast radius of a compromised agent; it does not make compromise impossible. The honest edges:
exec and contained stdio MCP
servers are bounded, but HTTP MCP servers are reached by the proxy directly,
a stdio server with "sandbox": "off" runs on the host, and the LLM client
opens its own outbound connections. Those need a network namespace, a
restricted-egress container, or firewall rules. See
docs/egress.md.sandbox.json set to mode: off,
exec runs at the Wirken UID with no container, and the host shell can then
read or rewrite trust files under the data directory. The gateway warns at
startup.SessionHandle<Channel>
API exists and is tested but is not threaded through the production message
path.wirken is a Claude Code plugin with 21 hand-picked skills, indexed on Flowy in the Agent Orchestration category. Install it with the command on its page. It includes aggregator, librarian, demo-selfsigned. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it