HanPlanet CLI

An AI-powered coding assistant that runs in your terminal.

HanPlanet CLI

About HanPlanet CLI

HanPlanet CLI is an AI-powered coding assistant that runs in your terminal. It integrates with the Hanplanet service and supports Claude, Ollama, and other AI backends. Use natural language to write code, edit files, run shell commands, search the web, and manage Git — all guided by the AI.

To use HanPlanet CLI, you need account access granted by an administrator.

Installation

Standalone builds are available for macOS Apple Silicon and Windows (x64). No Python or Node.js installation needed.

macOS (Apple Silicon)

  1. Click Download for macOS above and save HanPlanet-CLI-macos-arm64.zip.
  2. Open Terminal and unzip the archive:
    unzip ~/Downloads/HanPlanet-CLI-macos-arm64.zip -d ~/Downloads/
  3. Move the entire app folder to /opt. Do not move only the executable; _internal must stay next to it:
    sudo rm -rf /opt/HanPlanet-CLI sudo mkdir -p /opt sudo mv ~/Downloads/dist/HanPlanet-CLI /opt/HanPlanet-CLI
  4. Grant execute permission:
    chmod +x /opt/HanPlanet-CLI/hanplanet /opt/HanPlanet-CLI/ohmo
  5. Create symlinks on your PATH:
    sudo ln -sf /opt/HanPlanet-CLI/hanplanet /usr/local/bin/hanplanet sudo ln -sf /opt/HanPlanet-CLI/ohmo /usr/local/bin/ohmo
  6. Verify the installation:
    hanplanet --version hanplanet ohmo --help
  7. macOS Gatekeeper: On first launch, macOS may block the binary. Go to System Settings → Privacy & Security and click "Allow Anyway", then run again.

Windows (x64)

  1. Click Download for Windows above and save HanPlanet-CLI-windows-x64.zip.
  2. Right-click the zip file and select Extract All, or use 7-Zip.
  3. Open PowerShell in the extracted folder (where hanplanet.exe is located) and add the folder to your PATH:
    $p=$PWD.Path; if(([Environment]::GetEnvironmentVariable("Path","User")) -notlike "*$p*"){[Environment]::SetEnvironmentVariable("Path",([Environment]::GetEnvironmentVariable("Path","User"))+";"+$p,"User")}

    If you are updating an existing installation, use this command to remove the old entry and register the new path:

    $n=$PWD.Path; [Environment]::SetEnvironmentVariable("Path",((([Environment]::GetEnvironmentVariable("Path","User")-split";")|Where-Object{$_ -notlike "*HanPlanet-CLI*"-and$_})+$n)-join";","User")

    ⚠️ PowerShell only — does not work in Command Prompt (cmd).

  4. Open PowerShell or Command Prompt in your desired project folder and run:
    hanplanet
  5. Keep hanplanet.exe, ohmo.exe, and _internal in the same HanPlanet-CLI folder. Do not move only the executable.
  6. Windows SmartScreen: On first launch, Windows may show a security warning. Click "More info" → "Run anyway".

Usage

Initial setup

Run hanplanet setup to choose a provider and authenticate. Select Hanplanet to use the built-in Hanplanet Ollama backend.

hanplanet setup

Starting a session

hanplanet # Launch interactive TUI hanplanet -c # Continue the most recent session hanplanet -p "Prompt" # Non-interactive: run a prompt and exit

Authentication commands

hanplanet auth loginAuthenticate with a provider
hanplanet auth statusShow current auth sources
hanplanet auth logoutClear stored credentials
hanplanet auth switchSwitch active provider profile

Provider management

hanplanet provider listList configured provider profiles
hanplanet provider use <name>Switch to a profile
hanplanet provider add <name>Add a new provider profile

Slash commands (inside the TUI)

Type /help to see all available commands. Common ones:

/modelView or change the active model
/providerView or switch provider profiles
/configView or edit settings
/clearClear conversation history
/costShow token usage and cost
/diffShow git diff
/commitCreate a git commit
/memoryInspect or manage project memory
/skillsList available skills
/updatePull latest updates and reinstall

ohmo — Personal agent

ohmo is a separate agent that runs autonomously on long-horizon tasks using a persistent workspace (~/.ohmo).

ohmo init # Initialize ~/.ohmo workspace ohmo repl # Start interactive personal-agent session ohmo print "Prompt" # Non-interactive execution