clam
Shell integration that sends plain-English requests from your Bash, zsh, or PowerShell prompt to an LLM or coding agent.
At a Glance
clam shell integration released under the MIT license; free to use, copy, modify and distribute. The built-in agent needs your own OpenAI-compatible API key, which is an external cost.
Engagement
Available On
Alternatives
Listed Dec 2026
About clam
clam is an open-source command-line tool by dh1011 that lets you call an AI agent from the same prompt where you run shell commands. English requests typed at a Bash, zsh, or PowerShell prompt go to an agent, and the answer is rendered as markdown in the terminal. Regular commands run as usual, and the agent asks before it writes a file or runs a command. The latest listed release is v0.0.1.
What It Is
clam is a shell integration, shipped as a single static binary, that adds an AI agent to your existing terminal without a separate chat window or mode. A shell hook sees each line you enter. Lines that start with a real command run untouched. For other lines, a local check decides, without a network call, whether the text reads like English. Only English requests reach the agent, and commands never do.
How the approval flow works
The agent works in the current directory. It can read, list, and search files freely. Writing a file or running a command that is not on its small inspection allowlist triggers an Allow? [y/N] prompt that accepts only y or yes. clam auto on skips these prompts for the current terminal, and the prompt indicator changes to show auto-approve is active. clam on, clam off, and clam reset toggle interception or clear the session history.
Choosing an agent
The built-in agent works with OpenAI or any server that exposes an OpenAI-compatible Responses API, configured through OPENAI_API_KEY, OPENAI_BASE_URL, and CLAM_MODEL. Requests can instead be handed to Codex, Claude Code, OpenCode, or pi with clam agent, or to any command through CLAM_AGENT_CMD. External agents run non-interactively under their own permission settings, so clam's approval prompts apply only to the built-in agent.
Setup path
An install script for Linux, macOS, and FreeBSD downloads the matching binary, verifies its SHA-256 checksum, and installs it to ~/.local/bin. You then add one init line to ~/.bashrc, ~/.zshrc, or your PowerShell $PROFILE. Vim and Neovim can load the repository as a plugin so :! accepts English. Building from source needs Go 1.24 or later. fish and other shells are not supported yet.
Collections
Popular collections
- UI Design Skills for Coding Agents
Collection by @mayachen
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- See What Your Agent Is Doing
Collection by @evtuff
Add clam to one of your collections.
Community Discussions
Be the first to start a conversation about clam
Share your experience with clam, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
clam shell integration released under the MIT license; free to use, copy, modify and distribute. The built-in agent needs your own OpenAI-compatible API key, which is an external cost.
- MIT license
- Bash, zsh, PowerShell, Vim and Neovim integration
- Built-in agent with any OpenAI-compatible API, or Codex, Claude Code, OpenCode, pi, or any command
- Approval prompt before the agent writes a file or runs a command
- One static binary for Linux, macOS, Windows and FreeBSD
Capabilities
Key Features
- Send English requests from the Bash, zsh, or PowerShell prompt
- Regular commands run untouched; commands never reach the agent
- Local check decides whether a line is a request, with no network call
- Approval prompt before writing files or running commands
- Optional auto-approve mode
- Built-in agent for OpenAI-compatible Responses APIs
- Hand off to Codex, Claude Code, OpenCode, pi, or any custom command
- Per-terminal conversation sessions with reset
- Vim and Neovim plugin for English in :!
- Markdown rendering of answers in the terminal
- Single static binary with checksum-verified install script
