# moshcode > A metal wrapper CLI for agentic coding. moshcode installs and drives the coding agents you already use — opencode, Claude Code, codex and seven more — then keeps their sessions alive, counts what they cost, and bills for the work. Install: curl -fsSL https://moshcode.sh/install.sh | sh Source: https://github.com/moshcoder/moshcode Registry (Moshpit names): https://pit.moshcode.sh Moshpit Manager (claim a name): https://app.moshcode.sh/pit Account: https://app.moshcode.sh Blog: https://moshcode.sh/blog (RSS: https://moshcode.sh/blog/rss.xml) ## What it is moshcode does not implement a coding agent. It installs and drives the ones that already exist, and adds a runtime around them: - the herd — agent sessions that outlive the terminal, with a state per session (working, blocked, done, idle, unknown). "blocked" means a human decision is the only thing missing. - swarm — one task split into pieces that do not touch the same files, each run in its own herd session, then folded into one answer. - fleet — every swarm recorded as OpenFleet: who started what, under whose approval, and what was refused. - cost — read from the engines' own session logs; "burn" is the same figure per time window, so it says whether the next hour will cost what the last one did. - billing — timer, client, rate, billing, payments. - moshscript — .mosh files are real JavaScript with the command vocabulary injected as globals. ## Engines it installs - opencode - claude - codex - gemini - kimi - qwen - deepseek - aider - privacycode - openagents ## Commands - moshcode agents [engines] — list engines, open their agent view, or launch autonomously - moshcode start [engines] — launch an engine with its native defaults - moshcode herd [runtime] — run agent sessions that outlive this terminal - moshcode swarm [runtime] — one task, a herd of agents, one answer — plan, fan out, verify, synthesise (PRD 0015) - moshcode fleet [runtime] — the OpenFleet sysop tool: open a fleet, cap it, see the tree, stop a swarm, read the ledger (PRD 0016) - moshcode ps [runtime] — list herd sessions and what each one is doing - moshcode cost (usage) [runtime] — what each session is spending, read from the engines' own logs - moshcode attach [runtime] — attach this terminal to a herd session - moshcode kill [runtime] — end a herd session - moshcode wait [runtime] — block until a session is blocked, done, or idle - moshcode restore [runtime] — rebuild the herd's sessions after a reboot - moshcode ssh [runtime] — persistent SSH workspaces — one connection, many clean commands - moshcode install [engines] — install an engine or workflow tool - moshcode uninstall (remove) [engines] — take an engine or workflow tool off this machine - moshcode upgrade (update) [engines] — update moshcode, engines, or tools - moshcode mcp [extend] — register and inspect MCP servers - moshcode skill (skills) [extend] — install and inspect agent skills - moshcode prd [script] — publish or list product requirement documents - moshcode login [account] — authenticate with app.moshcode.sh - moshcode whoami [account] — show the logged-in account - moshcode logout [account] — clear the logged-in account - moshcode save [account] — save this machine's pit settings to your account - moshcode load [account] — bring your saved pit settings onto this machine - moshcode console [account] — serve or connect to the browser terminal - moshcode dns [hosting] — resolve Moshpit names on this machine - moshcode name [hosting] — prove you hold a Moshpit name, so an app can use it as your identity - moshcode doh [hosting] — run the DNS-over-HTTPS resolver - moshcode site (serve) [hosting] — install web-server config for a Moshpit name - moshcode template (templates) [hosting] — scaffold a stack for a Moshpit-hosted service - moshcode shorten (short, link) [hosting] — mint a short link on the pit — /f/ follows to your url - moshcode games (game, arcade) [arcade] — the moshcode arcade — twenty-two games, no menus - moshcode pwd (where) [system] — show the current directory and git context - moshcode engines [engines] — list engines and installation status, or apply an engine's settings defaults - moshcode tools [tools] — list workflow tools and installation status - moshcode trade [tools] — look up markets and trade through Alpaca - moshcode stocks (advisor) [tools] — equity research from advis0r.com - moshcode crypto (coins) [tools] — crypto market data from advis0r.com - moshcode news [tools] — headlines from your feeds, or a search - moshcode rss [tools] — read the same headlines in a full-screen reader - moshcode timer [business] — track time — on, off, and what it added up to - moshcode client (business, merchant, customer) [business] — who the work is for — clients, businesses, merchants - moshcode team (teams) [business] — who may do what on this machine - moshcode rate (rates) [business] — what an hour of agent time costs - moshcode billing (invoice) [business] — turn tracked time into an invoice - moshcode payments [business] — the rail invoices go out on - moshcode plugin (plugins) [extend] — install moshcode's slash commands into Claude Code - moshcode commands [script] — list built-in moshscript commands - moshcode completion [extend] — print a shell completion script - moshcode run [script] — run a moshscript - moshcode help (--help, -h) [system] — show command help - moshcode version (--version, -v) [system] — show the installed version Every command has help: moshcode help , or moshcode help --json.