cd /news/developer-tools/show-hn-clai-context-engineering-for… · home topics developer-tools article
[ARTICLE · art-37524] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Show HN: Clai – Context engineering for terminal powerusers

Developer baalimago released Clai, a command-line context feeder for AI tasks that supports multiple LLM vendors and MCP servers. The tool follows Unix philosophy, enabling piped data workflows, conversation management, and customizable profiles for power users.

read1 min views1 publishedJun 24, 2026
Show HN: Clai – Context engineering for terminal powerusers
Image: source

Test coverage: 68.860% 😌👏

clai

(/klaɪ/, like "cli" in "cli mate") is a command line context-feeder for any ai task.

Installing:

curl -fsSL https://raw.githubusercontent.com/baalimago/clai/main/setup.sh | sh

You can also install via go:

go install github.com/baalimago/clai@latest

Then run:

clai help | clai query Please give a concise explanation of clai

Either look at clai help

or the examples for how to use clai

. If you have time, you can also check out this blogpost for a slightly more structured introduction on how to use Clai efficiently.

Install Glow for formatted markdown output when querying text responses.

  • Add any MCP server you'd like by simply pasting their configuration.MCP client supportVendor agnosticism- Use any functionality in Clai withmost LLM vendorsinterchangeably.- Create, manage and continue conversations.Conversations- Pre-prompted profiles enabling customized workflows and agents.ProfilesUnix-like- Clai follows theunix philosophyand works seamlessly with data piped in and out.

All of these features are easily combined and tweaked, empowering users to accomplish very diverse use cases. See examples for additional info.

Vendor Environment Variable Models
Berget AI BERGET_API_KEY
berget:

OPENROUTER_API_KEY

Text models, use prefixor:

MISTRAL_API_KEY

Text modelsOPENAI_API_KEY

Text models,photo modelsANTHROPIC_API_KEY

Text modelsGEMINI_API_KEY

Text models,photo modelsHF_API_KEY

Text models, use prefixhf:

XAI_API_KEY

Text modelsINCEPTION_API_KEY

Text modelsollama:

(defaults to llama3), server defaults to localhost:11434Shell completions are also available:

mkdir -p ~/.local/share/bash-completion/completions
clai completion bash > ~/.local/share/bash-completion/completions/clai
mkdir -p ~/.zsh/completions
clai completion zsh > ~/.zsh/completions/_clai

For zsh, ensure your fpath

includes the completions directory before compinit

, for example:

fpath=(~/.zsh/completions $fpath)
autoload -Uz compinit && compinit

Then restart your shell or reload your shell configuration.

── more in #developer-tools 4 stories · sorted by recency
── more on @baalimago 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-clai-context…] indexed:0 read:1min 2026-06-24 ·