Clam

Clam adds AI-agent requests to a developer's shell, where the agent can read project files and respond in the terminal. Developers can request code changes and approve file writes or command execution before they happen.

Clam screenshot

Who it's for

  • Developers working in Bash or zsh who want to ask questions about project files without leaving the terminal.
  • Developers using Codex, Claude Code, OpenCode, or pi who want to invoke an existing agent from their shell.
  • Teams using PowerShell with PSReadLine, Vim, or Neovim who want agent requests available in those listed environments.

Not the right fit if…

  • Teams using shells outside Bash, zsh, PowerShell, Vim, and Neovim: these are the shell environments listed as supported.

How it fits your workflow

Install Clam and add its initialization command to the shell configuration. The shell hook checks locally; normal commands continue to run in the user's shell and are not sent to the agent.

Enter an agent request at the prompt. The agent can read project files and return an answer in the terminal.

When a request would write a file or run a command, Clam asks for confirmation before carrying it out.

Pricing

The vendor doesn't publish prices. Check with Clam directly.

Prices checked on Nov 28, 2026 from the vendor's site. They can change; confirm before you buy.

Key features

Agent access from the shell
Send a request from the same prompt used for shell commands and receive the agent's answer in the terminal, without opening a separate chat window or switching modes.
Project-aware requests
Requests go to the agent, which can read files in the project to answer questions or act on the code.
Approval before changes
Clam asks for confirmation before an action writes a file or runs a command. The example shows the user approving a requested edit with y.
Multiple agent choices
Use the built-in agent with an OpenAI-compatible API, or use Codex, Claude Code, OpenCode, pi, or another command.
Local shell check
The shell hook checks locally and gives up after a second; regular commands run in the user's shell and are not sent to the agent.
Cross-platform binary
The page describes a static binary for Linux, macOS, Windows, and FreeBSD, with architecture support listed for each.

Works with

  • OpenAI-compatible API
  • Codex, Claude Code, OpenCode, and pi
  • Other commands

Limitations to know

  • The listed shell environments are Bash, zsh, PowerShell with PSReadLine, Vim, and Neovim.
  • Building from source requires Go 1.24 or later.

Alternatives to consider

  • Butterfish Shell

    Choose it if you want an integrated ChatGPT-style shell with autosuggestions and an optional Goal Mode agent, rather than Clam's shell hook for invoking an agent from the prompt.

Compare Clam side by side

Getting started

curl -fsSL https://raw.githubusercontent.com/dh1011/clam/main/install.sh | sh

Supported shells: Bash, zsh, PowerShell with PSReadLine, Vim, and Neovim. The installer selects a binary for supported OS and CPU combinations; building from source requires Go 1.24 or later.

  1. Run the install script; it selects the binary for the operating system and CPU, checks its SHA-256 checksum, and installs it to ~/.local/bin.
  2. Set OPENAI_API_KEY for the built-in agent, or choose an existing agent command.
  3. Add the appropriate Clam initialization command to the shell configuration, such as eval "$(clam init bash)" in ~/.bashrc.
  4. Use the shell prompt to send a request and approve any proposed file write or command.

Frequently asked questions

Which shells does Clam support?

The page lists Bash, zsh, PowerShell with PSReadLine, Vim, and Neovim.

Which operating systems are supported?

The page lists Linux, macOS, Windows, and FreeBSD, with supported CPU architectures specified for each.

Does Clam make changes without asking?

No. The page says that anything that writes a file or runs a command asks first, and the example shows an approval prompt.

Can I use an agent I already have?

Yes. The page lists Codex, Claude Code, OpenCode, pi, or any command as options, in addition to the built-in agent.