User Guide
This guide is for the people who deploy and operate the software. It covers three programs that share one proxy kernel.
etemenanki-app
Section titled “etemenanki-app”A standalone proxy in the spirit of Xray, driven by a single TOML file.
- Inbounds accept client connections: SOCKS 4/4a/5, HTTP, Shadowsocks (AEAD and 2022), Trojan, VLESS (also over REALITY, with or without XTLS Vision), VMess, AnyTLS, sss, Hysteria 2, and a TUN device. Most of them run over TCP, TLS, WebSocket or gRPC.
- Outbounds carry each connection onwards: direct (
freedom),blackhole, the same proxy protocols acting as clients, and WireGuard. - Routing picks an outbound for every flow with first-match rules over domains, IP ranges, ports, network, source address and inbound tag. UDP is routed packet by packet.
- The configuration is strict. Unknown keys and unknown values are errors, so a typo stops the proxy instead of silently changing what it does.
etemenanki-app --test -c config.tomlchecks a file without starting anything. - A saved edit is applied while the proxy runs, and connections that the change does not touch keep going.
- Optionally, a subscribe file from a provider supplies the nodes, DNS settings and route groups, and your own file picks a node for each group.
- Optionally, a local REST API switches a route group’s node, reloads the file, and lists or closes connections.
katana
Section titled “katana”An XrayR-compatible node agent for proxy panels.
- It talks to Xboard / V2board through the UniProxy API, or to helium through helium’s own node API.
- The panel decides the node’s protocol (VMess, VLESS with or without REALITY, Trojan, Shadowsocks, Hysteria 2, AnyTLS, SOCKS or HTTP over TLS, or sss), its port and transport, and its users. katana’s own file says how to reach the panel and holds everything local: certificates, outbounds, routing and limits.
- It enforces per-user speed limits and, where it sees client addresses, the panel’s device limits; blocks destinations that match audit rules; and reports each user’s traffic back to the panel.
- One process can serve many nodes. Each node has its own panel connection and runs on its own, with its own copy of every outbound and its own DNS cache.
Muffin
Section titled “Muffin”A desktop proxy client for Linux, macOS and Windows.
- It imports a provider’s subscription by URL, as an Etemenanki subscribe file or in another client’s format, such as a Clash profile or share links, which it converts, and keeps it up to date. A subscribe file can also be imported from disk.
- It runs VLESS (including REALITY and Vision), VMess, Trojan, Shadowsocks, AnyTLS, Hysteria 2, WireGuard, SOCKS and HTTP nodes.
- A window and a tray icon switch nodes, modes and the system proxy, and a Diagnostics page finds where a connection breaks; a background service runs the kernel.
- TUN mode routes every program through it, after a one-time administrator permission.
Which one do I need?
Section titled “Which one do I need?”| You want to… | Run |
|---|---|
| Run your own proxy server or client from a config file | etemenanki-app |
| Serve nodes whose users and settings are managed in a panel | katana |
| Check that an upstream, such as a WireGuard endpoint, really passes traffic, without touching a production node | etemenanki-app, as a throwaway local SOCKS proxy |
| Use a provider’s subscription on a desktop, with a window to pick nodes | Muffin |
| Run a desktop client whose nodes come from a provider’s subscribe file, and switch routes from a script | etemenanki-app with a subscribe file and the REST API |
| Build the client into an Android or iOS app | The embedding library; see Embedding in an Android or iOS app |
Where to go next
Section titled “Where to go next”InstallGet etemenanki-app and katana onto a server, prebuilt or from source.
Your first proxyA working etemenanki-app in five minutes, then a routing rule.
The etemenanki-app configuration fileHow the TOML file is organised and validated, and where each part is explained.
Subscribe filesTake nodes, DNS and route groups from a provider's file, and pick a node for each group.
REST APISwitch routes, reload and watch connections over HTTP.
katanaWhat the panel decides, what your file decides, and how a node runs.
MuffinInstall the desktop client and import a subscription.
RecipesComplete, checked configurations for common setups.
ReferenceEvery configuration key, the command line and error messages.
Conventions in this guide
Section titled “Conventions in this guide”- Configuration snippets are TOML, with keys spelled exactly as the programs expect them.
- Addresses, keys, passwords and UUIDs in examples are placeholders:
example.com,192.0.2.0/24,2001:db8::/32and obviously fake keys. Replace them with your own values. - Complete example files are checked with the programs’
--testmode before they are published.