{"id":15175497,"url":"https://github.com/wilswer/ait","last_synced_at":"2026-05-27T08:02:31.879Z","repository":{"id":251392137,"uuid":"832299798","full_name":"wilswer/ait","owner":"wilswer","description":"AI in the Terminal","archived":false,"fork":false,"pushed_at":"2026-04-28T12:52:48.000Z","size":306,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-22T22:06:07.835Z","etag":null,"topics":["ai","anthropic","chatbot","cohere","gemini","genai","groq","llm","ollama","openai","ratatui","ratatui-rs","terminal","terminal-user-interface","tui"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/wilswer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":null,"dco":null,"cla":null}},"created_at":"2024-07-22T18:26:16.000Z","updated_at":"2026-04-28T12:52:53.000Z","dependencies_parsed_at":"2024-08-08T11:11:51.030Z","dependency_job_id":"45052aff-aa37-498f-a769-8a348a622a98","html_url":"https://github.com/wilswer/ait","commit_stats":{"total_commits":78,"total_committers":1,"mean_commits":78.0,"dds":0.0,"last_synced_commit":"dcba76942c894136a482461964c062f66abf444a"},"previous_names":["wilswer/ait"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/wilswer/ait","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilswer%2Fait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilswer%2Fait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilswer%2Fait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilswer%2Fait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilswer","download_url":"https://codeload.github.com/wilswer/ait/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilswer%2Fait/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33556551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","chatbot","cohere","gemini","genai","groq","llm","ollama","openai","ratatui","ratatui-rs","terminal","terminal-user-interface","tui"],"created_at":"2024-09-27T12:39:18.826Z","updated_at":"2026-05-27T08:02:31.848Z","avatar_url":"https://github.com/wilswer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI in the Terminal\n\n`ait` is a terminal user interface for interacting with several\ngenerative large language models from multiple providers.\nIt uses the [`genai`](https://github.com/jeremychone/rust-genai) crate to\ncommunicate with the model providers.\nThe TUI is built using the [`ratatui`](https://ratatui.rs) crate.\n\n## Installation\n\nInstallation requires `cargo` to be installed.\n\n```bash\ncargo install ait\n```\n\n### Manual installation\n\nClone this repository and `cd` to the `ait` directory and run the application using:\n\n```bash\ncargo run\n```\n\nInstall the application by running:\n\n```bash\ncargo install --force --path .\n```\n\nThe binary name is `ait`.\n\nBinaries are also available for download under [Releases](https://github.com/wilswer/ait/releases).\n\n## Usage\n\nThe chat interface is modal and starts in the 'normal' mode.\nBy pressing the `i` key text can be input into the text area.\nMore information can be found by pressing the `?` key.\nTo submit queries to the model providers, you either need to obtain an API key and\nset the appropriate environment variable OR you need a running\n[Ollama](https://ollama.com/) instance on `http://localhost:11434`.\n\nTo start the TUI simply run\n\n```bash\nait\n```\n\nIf you want to provide a custom system prompt, it can be achieved like this:\n\n```bash\nait --system-prompt \"You are a helpful, friendly assistant.\"\n```\n\nIf you want to add context to your conversation, use the `--context` argument.\n\n```bash\nait --context my_file.txt\n```\n\n`ait` can also read from stdin to add context:\n\n```bash\ncat my_file.txt | ait\n```\n\nA powerful pattern is to use a text serializer such as\n[`yek`](https://github.com/bodo-run/yek) and use this as context input:\n\n```bash\nyek my_file.txt | ait\n```\n\nOr serialize all file in a directory and add as context:\n\n```bash\nyek my_dir | ait\n```\n\n## Chat history\n\nChat history is stored as a `sqlite` database (facilitated by the\n[`rusqlite`](https://github.com/rusqlite/rusqlite) crate)\nin the platform's standard data directory:\n\n- macOS: `~/Library/Application Support/ait/chats.db`\n- Linux: `~/.local/share/ait/chats.db`\n- Windows: `%APPDATA%\\ait\\chats.db`\n\nIn addition, `ait` will store a log of the latest chat in the platform's cache directory:\n\n- macOS: `~/Library/Caches/ait/latest-chat.log`\n- Linux: `~/.cache/ait/latest-chat.log`\n- Windows: `%LOCALAPPDATA%\\ait\\latest-chat.log`\n\nI'm probably the only one using this tool but for users of `ait` version 0.5.1 and\nearlier, to keep your old database, simply copy it from the previous location:\n\n```bash\ncp ~/.cache/ait/chats.db \u003cnew platform specific location according to list above\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilswer%2Fait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilswer%2Fait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilswer%2Fait/lists"}