Coding agents and shell completion

agent setup for Claude Code, Codex, Cursor and VS Code, the skills it installs, and completion for zsh, bash and fish.

agent setup

hostemi agent setup finds Claude Code, Codex, Cursor and VS Code on this computer and adds the Hostemi MCP server (https://mcp.hostemi.com/mcp) to each tool's own config. It prints the files and the exact lines first, writes only the server address, and each tool signs in through your browser the first time it connects: no key lands in a file.

Command
hostemi agent setup --client cursor --dry-run
Output (recorded, exit 0)
MCP server: https://mcp.hostemi.com/mcp

Cursor  ~/.cursor/mcp.json  (new file)
  + {
  +   "mcpServers": {
  +     "hostemi": {
  +       "url": "https://mcp.hostemi.com/mcp"
  +     }
  +   }
  + }

Dry run: nothing was written.
ToolWhat it writes
Claude Coderuns claude mcp add --transport http --scope user hostemi … (or edits ~/.claude.json), skills into ~/.claude/skills
Codex[mcp_servers.hostemi] in ~/.codex/config.toml, skills into ~/.codex/skills
Cursor~/.cursor/mcp.json
VS Codethe user mcp.json (under servers)

Options: --client claude-code,codex for only some, --no-skills, --url for another server, --yes to write without asking (the diff is still printed).

hostemi mcp config --client <name> writes nothing; it prints what to paste. For Claude and ChatGPT it prints the steps in the app.

claude-code

$ hostemi mcp config --client claude-code
Claude Code
  Add this to ~/.claude.json:

  {
    "mcpServers": {
      "hostemi": {
        "type": "http",
        "url": "https://mcp.hostemi.com/mcp"
      }
    }
  }

  Or run: claude mcp add --transport http hostemi https://mcp.hostemi.com/mcp

To write it for you: hostemi agent setup

Using the CLI from a coding agent

  • Tell the agent to use --json and to read exit codes; hostemi help --json gives it the whole tree in one call.
  • An agent has no terminal: changes need --yes, and the host's approval setting still decides. Exit 4 means: give the host the link and stop.
  • For conversation-style work prefer the MCP server; for bulk jobs and files (CSV exports, a website document) the CLI is shorter.

Shell completion

zsh

mkdir -p ~/.zfunc && hostemi completion zsh > ~/.zfunc/_hostemi
# in ~/.zshrc, before compinit:
fpath=(~/.zfunc $fpath)
Command
hostemi completion zsh
Output (recorded, exit 0, first lines)
#compdef hostemi
# hostemi completion for zsh. Install:
#   mkdir -p ~/.zfunc && hostemi completion zsh > ~/.zfunc/_hostemi
#   then in ~/.zshrc, before compinit:  fpath=(~/.zfunc $fpath)
_hostemi() {
  local -a tops subs flags
  tops=(
    'whoami:Check the stored key or token and show which API it talks to'
    'status:What needs you today\: arrivals, departures, unpaid bookings, and whether you are signed in'
    'history:Who changed an object, when, from which surface, before and after'
Something missing from this page? Write to [email protected], or use the form on the Help page.