← back to guides

Session: keys and commands

You've installed codehamr. Here's the quick tour.

Configure HamrPass

If you bought a HamrPass, you got an hp_... key by email. Two ways to wire it up.

Inside a session (fastest):

  1. Start codehamr.

    codehamr
  2. Type /hamrpass, paste your key, press Enter.
  3. Type /models hamrpass, press Enter.

You're on HamrPass. The budget bar appears in the status line.

Or edit your config file:

.codehamr/config.yaml

active: hamrpass

models:
    hamrpass:
        llm: hamrpass
        url: https://codehamr.com
        key: hp_xxxxxxxxxxxxx

Running local Ollama instead? Skip this section. See the Ollama guide.

The three slash commands

That's the whole command surface.

CommandWhat it does
/modelsList your profiles. Add <name> to switch. Tab cycles options in the popover.
/hamrpassSet or show your HamrPass key.
/clearReset the conversation and clear scrollback.

Tab on an empty prompt seeds a / so you can browse commands.

Keys you'll use

KeyWhat it does
EnterSend your prompt
Alt+EnterInsert a newline
Up / DownWalk your command history
Ctrl+LClear the typed prompt, redraw the screen
Ctrl+CCancel the current request. Press again within 3 seconds to quit.
Ctrl+DQuit (only on an empty prompt)
EscClose a popover, or back out of an argument

Your first task

Pick something small and checkable:

"Add a failing test that proves parse_url('http://x:') rejects URLs with an empty port. Then make it pass."

Press Enter. Codehamr writes the failing test, runs it, fixes the code, and reruns until it passes, quoting the real output it got. Checking its own work is a habit built into the agent, not a chat trick. See prove it, don't promise it for why.