{"id":25238592,"url":"https://github.com/baalimago/clai","last_synced_at":"2026-05-03T14:01:44.333Z","repository":{"id":225647341,"uuid":"766496226","full_name":"baalimago/clai","owner":"baalimago","description":"Command line artificial intelligence - Your local LLM context-feeder","archived":false,"fork":false,"pushed_at":"2026-05-03T05:43:42.000Z","size":12518,"stargazers_count":142,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-03T07:25:15.450Z","etag":null,"topics":["ai","cli","context-feeder","go","golang-tools","llm"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baalimago.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2024-03-03T12:36:02.000Z","updated_at":"2026-05-03T05:43:47.000Z","dependencies_parsed_at":"2026-01-13T16:07:45.029Z","dependency_job_id":null,"html_url":"https://github.com/baalimago/clai","commit_stats":null,"previous_names":["baalimago/goai","baalimago/clai"],"tags_count":148,"template":false,"template_full_name":null,"purl":"pkg:github/baalimago/clai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Fclai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Fclai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Fclai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Fclai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baalimago","download_url":"https://codeload.github.com/baalimago/clai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baalimago%2Fclai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32571456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","cli","context-feeder","go","golang-tools","llm"],"created_at":"2025-02-11T17:22:39.219Z","updated_at":"2026-05-03T14:01:44.328Z","avatar_url":"https://github.com/baalimago.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Command Line Artificial Intelligence\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/baalimago/clai)](https://goreportcard.com/report/github.com/baalimago/clai)\n![Wakatime](https://wakatime.com/badge/user/018cc8d2-3fd9-47ef-81dc-e4ad645d5f34/project/018e07e1-bd22-4077-a213-c16290d3db52.svg)\n\nTest coverage: 67.467% 😌👏\n\u003chr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\u003ccode\u003eclai\u003c/code\u003e (\u003ci\u003e/klaɪ/\u003c/i\u003e, like \"cli\" in \"\u003cb\u003ecli\u003c/b\u003emate\") is a command line context-feeder for any ai task.\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"img/banner.jpg\" alt=\"Banner\"\u003e\n\u003c/div\u003e\n\n## Get started\n\nInstalling:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/baalimago/clai/main/setup.sh | sh\n```\n\nYou can also install via go:\n\n```bash\ngo install github.com/baalimago/clai@latest\n```\n\nThen run:\n\n```bash\nclai help | clai query Please give a concise explanation of clai\n```\n\nEither look at `clai help` or the [examples](./EXAMPLES.md) for how to use `clai`.\nIf you have time, you can also check out [this blogpost](https://lorentz.app/blog-item.html?id=clai) for a slightly more structured introduction on how to use Clai efficiently.\n\nInstall [Glow](https://github.com/charmbracelet/glow) for formatted markdown output when querying text responses.\n\n## Features\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"img/showcase.gif\" alt=\"Showcase\"\u003e\n\u003c/div\u003e\n\n- **[MCP client support](./EXAMPLES.md#mcp-tools-external-tool-servers)** - Add any MCP server you'd like by simply pasting their configuration.\n- **Vendor agnosticism** - Use any functionality in Clai with [most LLM vendors](#supported-vendors) interchangeably.\n- **[Conversations](./EXAMPLES.md#bind-a-previous-conversation-to-the-current-directory)** - Create, manage and continue conversations.\n- **[Profiles](./EXAMPLES.md#profiles--workflow-presets)** - Pre-prompted profiles enabling customized workflows and agents.\n- **Unix-like** - Clai follows the [unix philosophy](https://en.wikipedia.org/wiki/Unix_philosophy) and works seamlessly with data piped in and out.\n\nAll of these features are easily combined and tweaked, empowering users to accomplish very diverse use cases.\nSee [examples](./EXAMPLES.md) for additional info.\n\n## Supported vendors\n\n| Vendor      | Environment Variable | Models                                                                                                                                                             |\n| ----------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| OpenRouter  | `OPENROUTER_API_KEY` | [Text models](https://openrouter.ai/models), use prefix `or:`                                                                                                       |\n| Mistral     | `MISTRAL_API_KEY`    | [Text models](https://docs.mistral.ai/getting-started/models/)                                                                                                     |\n| OpenAI      | `OPENAI_API_KEY`     | [Text models](https://platform.openai.com/docs/models), [photo models](https://platform.openai.com/docs/models/dall-e)                                             |\n| Anthropic   | `ANTHROPIC_API_KEY`  | [Text models](https://platform.claude.com/docs/en/about-claude/models/overview)                                                                                    |\n| Gemini      | `GEMINI_API_KEY`     | [Text models](https://ai.google.dev/gemini-api/docs/models), [photo models](https://ai.google.dev/gemini-api/docs/image-generation#image_generation_text-to-image) |\n| HuggingFace | `HF_API_KEY`         | [Text models](https://huggingface.co/docs/inference-endpoints/chat-completions), use prefix `hf:`                                                                  |\n| xAi         | `XAI_API_KEY`        | [Text models](https://docs.x.ai/docs/models)                                                                                                                       |\n| Inception   | `INCEPTION_API_KEY`  | [Text models](https://platform.inceptionlabs.ai/docs#models)                                                                                                       |\n| Ollama      | N/A                  | Use format `ollama:` (defaults to llama3), server defaults to localhost:11434                                                                                      |\n\n---\n\nShell completions are also available:\n\n```bash\n# bash\nmkdir -p ~/.local/share/bash-completion/completions\nclai completion bash \u003e ~/.local/share/bash-completion/completions/clai\n```\n```bash\n# zsh\nmkdir -p ~/.zsh/completions\nclai completion zsh \u003e ~/.zsh/completions/_clai\n```\n\nFor zsh, ensure your `fpath` includes the completions directory before `compinit`, for example:\n\n```bash\nfpath=(~/.zsh/completions $fpath)\nautoload -Uz compinit \u0026\u0026 compinit\n```\n\nThen restart your shell or reload your shell configuration.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaalimago%2Fclai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaalimago%2Fclai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaalimago%2Fclai/lists"}