clai

clai is a command-line AI multitool: one Go binary that queries OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI, Ollama and OpenRouter from your terminal, with pipes, profiles, skills and MCP tools.

Working when we checked on .

Visit clai

What is clai?

clai is a command-line AI client distributed as a single 16 MB Go binary, letting users query OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI, Ollama, and OpenRouter models from the terminal. It targets developers who want a Unix-filter-style tool for any model, plus a full agent with profiles, Agent Skills, and MCP tools. It saves every conversation as plain JSON, imports transcripts from other agent harnesses like Claude Code, Codex, and Cursor, and includes the clai.chat hub to share and rate configs. Bring-your-own-key, tools off by default, MIT licensed.

clai pricing

Pricing model: Freemium

Local CLI $0 (open source, MIT); Hub and config sync $0; Conversation sync $1 per started GB a month

clai pros

  • Single 16 MB Go binary that boots in 11 ms
  • Bring-your-own-key with tools off by default, MIT licensed
  • Saves conversations as plain JSON and imports transcripts from Claude Code, Codex, Cursor and others
  • Unix pipes let users chain queries, e.g. turning logs into incident notes
  • Config sync and the Hub are free; supports images in and image generation
  • clai.cloud account syncs configs across machines at no cost

clai cons

  • Conversation sync costs $1 per started GB per month, requiring a card on file
  • Conversations are not end-to-end encrypted, so secrets must be kept out of committed chats
  • Agent tools like go and apply_patch must be enabled explicitly; nothing runs without configuration
  • No end-to-end encryption for synced conversations is documented

Frequently asked questions about clai

What is clai?

clai is a command-line AI tool distributed as one 16 MB Go binary that starts in 11 ms. It works as a Unix filter for any model, and becomes a full agent once given a profile. It is MIT licensed and bring-your-own-key.

Which AI models and vendors does clai support?

It can query OpenAI, Anthropic, Google, Mistral, DeepSeek, xAI, Ollama, and OpenRouter from the terminal, using the vendor and key the user configures.

Who is clai for?

It is aimed at developers and terminal users who want to query models via Unix pipes, run agent profiles with tools like Go, and manage conversations as JSON.

How do I install clai?

Run 'go install github.com/baalimago/clai@latest' or 'curl -fsSL https://install.clai.chat | sh'. The install script is readable on GitHub.

How is clai priced?

The CLI, Hub, and config sync are free and open source. Synced conversations cost $1 per started GB a month, billed on the month's peak storage rounded up to whole GB.

Does clai handle privacy and keys?

clai is bring-your-own-key and sends prompts to the vendor configured on the user's machine. Config files holding API keys are never uploaded, and conversations are not end-to-end encrypted, so secrets should stay out of committed chats.

Can clai work with images?

Yes. Users can pass images in, for example asking which route is slowest in a latency chart, and generate images from prompts with 'clai photo'.

Can clai import conversations from other tools?

Yes. It imports sessions from Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Qwen, Antigravity or pi when committed with --imports, and these count like any other conversation.

What happens if a payment for conversation sync fails?

Stripe retries for 7 days while everything keeps working. After 7 days commits are refused but pulls still work, and after 30 days synced conversations are deleted, though the config store is never trimmed.

Do I need an account to use the Hub?

No. Every Hub page and raw config file is public. An account is only needed to publish, rate, or sync.

Categories

Use cases

Alternatives to clai

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z