{"id":27424107,"url":"https://github.com/itsdarik/chai","last_synced_at":"2026-04-15T19:37:32.446Z","repository":{"id":287751621,"uuid":"951646174","full_name":"itsdarik/chai","owner":"itsdarik","description":"Chat with AI in the terminal","archived":false,"fork":false,"pushed_at":"2025-05-31T17:37:17.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-28T08:47:57.423Z","etag":null,"topics":["ai","anthropic","chai","chat","chatgpt","claude","cli","codestral","gemini","genai","google","gpt","grok","llm","mistral","ollama","openai","terminal","xai"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsdarik.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}},"created_at":"2025-03-20T02:38:45.000Z","updated_at":"2025-10-15T21:21:22.000Z","dependencies_parsed_at":"2025-06-08T15:03:53.531Z","dependency_job_id":"09a4f838-85e4-416f-b103-ccf127335e6d","html_url":"https://github.com/itsdarik/chai","commit_stats":null,"previous_names":["itsdarik/chai"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/itsdarik/chai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdarik%2Fchai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdarik%2Fchai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdarik%2Fchai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdarik%2Fchai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsdarik","download_url":"https://codeload.github.com/itsdarik/chai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdarik%2Fchai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31857612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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","anthropic","chai","chat","chatgpt","claude","cli","codestral","gemini","genai","google","gpt","grok","llm","mistral","ollama","openai","terminal","xai"],"created_at":"2025-04-14T11:37:36.844Z","updated_at":"2026-04-15T19:37:32.380Z","avatar_url":"https://github.com/itsdarik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chai\n\nChat with AI in the terminal.\n\n## Supported Providers\n- Anthropic\n- Google\n- Mistral\n- OpenAI\n- xAI\n\n## Why `chai`?\n\n### Compared to Official Apps and Websites\n- **Unlimited Usage**: No message limits for premium models (pay-as-you-go).\n- **Cost-Effective**: Less expensive than premium subscriptions for light use.\n- **Seamless Access**: No login required after setting up your API key(s).\n- **Unified Interface**: Access multiple providers and models from a single interface.\n- **Enhanced Privacy**:\n  - Paid API tiers typically don't train on your data (check provider privacy policies).\n  - All chat history is stored locally on your device.\n\n### Compared to Local LLMs like `ollama`\n- **State of the Art Models**: Access full, non-distilled, flagship models.\n- **No Model Downloads**: No need to download models and keep them up-to-date.\n- **No Hardware Investment**: No need to buy expensive hardware.\n\n## Usage\n\n1. Set your API key(s):\n\n   ```sh\n   # Anthropic\n   export ANTHROPIC_API_KEY='your-anthropic-api-key'\n\n   # Google\n   export GOOGLE_API_KEY='your-google-api-key'\n\n   # Mistral\n   export MISTRAL_API_KEY='your-mistral-api-key'\n\n   # OpenAI\n   export OPENAI_API_KEY='your-openai-api-key'\n\n   # xAI\n   export XAI_API_KEY='your-xai-api-key'\n   ```\n\n2. [Install or update `uv`](https://github.com/astral-sh/uv?tab=readme-ov-file#installation).\n\n3. Run `chai.py`:\n\n   ```sh\n   uv run chai.py -h\n   ```\n\n   Use `/?` or `/help` to print available commands.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdarik%2Fchai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsdarik%2Fchai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdarik%2Fchai/lists"}