Hania Code

Hania Code

Hania Code is the coding capability inside Hania. It lets an agent read, edit, and search files, and run commands, on a real machine - your server, or your own laptop. You use it from a terminal client called hania, or from the console, where an agent with the coding tool works on a paired machine.

It is not a separate product. Hania Code runs on the same platform as the rest of Hania, so it uses the same billing, the same workspaces, the same model registry, the same tool approvals, and the same MCP servers. An agent that answers your customers on Monday can fix your deploy script on Tuesday.

How it works

The agent loop, the language model calls, and billing all run on Hania's server. The machine only runs a thin daemon that carries out file and shell operations. That daemon holds an outbound connection to Hania, so the machine needs no inbound ports, no public address, and no firewall changes.

When the agent wants to change a file or run a command, the change is shown to you first and waits for your approval - in the terminal as an inline card, in the console as an approval card in the conversation. You can turn the confirmation off per tool when you trust the setup. See approvals.

Two ways to use it

FromHow it works
The terminalInstall the hania client with a one-line installer, sign in, and paste a machine key. It chats with a coding agent that works on that machine, in the folder you launched it from. See the terminal client.
The consolePair a server as a machine, point a coding tool at it, and assign the tool to an agent. Then any conversation with that agent - console chat, or an autonomous run - can work on that machine.

What you need

  • For the terminal - an API key with the chat:send ability. The client asks for it on first run.
  • For coding on a machine - a machine, created in the console on a paid plan. Its one-time key either runs the daemon on a server or is pasted into the terminal client. Machines are not available on Free; see plan limits.

Billing

Coding uses the existing rails. Language model usage and per-tool execution are metered the same way as the rest of Hania, against your workspace's usage credit. There is no separate coding subscription. See Plans & usage.

Where to go next