right from your shell_
Use your LLM or coding agent from the same prompt you run commands in. Ask it something, and it answers right in your terminal. Your commands still run as usual, and nothing changes without a y.
~/weather-cli$ ls
~/weather-cli$ what does this project do?
~/weather-cli$ add a help option to the cli
~/weather-cli$ git diff --stat
~/weather-cli$ node index.js --help
~/weather-cli$
SYNOPSIS #
clam init bash | zsh | pwsh****clam [on | off | reset]** clam auto** [on | off]any request for the agent
DESCRIPTION #
Puts an AI agent one Enter away in Bash, zsh, PowerShell and Vim, without getting in the way of the shell: commands run exactly as they would without clam, and there is no separate chat window or mode to switch into. Requests go to the agent, which can read your project; anything that writes a file or runs a command asks first. Use the built-in agent with any OpenAI-compatible API, or one you already have: Codex, Claude Code, OpenCode, pi, or any command. One static binary for Linux, macOS, Windows and FreeBSD.
INSTALL #
$ curl -fsSL https://raw.githubusercontent.com/dh1011/clam/main/install.sh | sh
$ export OPENAI_API_KEY=sk-...
$ echo 'eval "$(clam init bash)"' >> ~/.bashrc
The script picks the right binary for your OS and CPU, checks its SHA-256 checksum and installs it to ~/.local/bin. No runtime to install. For zsh, use clam init zsh in ~/.zshrc; for PowerShell, download the Windows .exe from the latest release and add clam init pwsh | Out-String | Invoke-Expression to $PROFILE. To build from source, run make with Go 1.24+.
PLATFORMS #
Shells: Bash, zsh, PowerShell (with PSReadLine), Vim and Neovim.Systems: Linux (amd64, arm64, armv7, 386), macOS (Intel, Apple silicon), Windows (amd64, arm64), FreeBSD (amd64, arm64).Agents: built-in (OpenAI-compatible), Codex, Claude Code, OpenCode, pi, or any command.
HOW IT WORKS #
The check runs locally and gives up after a second, so the prompt never waits on the network. Commands never reach the agent.