{"id":27262889,"url":"https://github.com/xingjian-zhang/mini_chat","last_synced_at":"2026-04-28T08:02:45.883Z","repository":{"id":283184997,"uuid":"950949128","full_name":"xingjian-zhang/mini_chat","owner":"xingjian-zhang","description":"Your minimal chatbot in terminal","archived":false,"fork":false,"pushed_at":"2025-03-19T13:41:28.000Z","size":349,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T05:58:16.953Z","etag":null,"topics":["chatbot","cli","cli-app","llm","python","terminal","tui"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xingjian-zhang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-18T23:47:02.000Z","updated_at":"2025-03-19T13:41:34.000Z","dependencies_parsed_at":"2025-03-20T00:45:47.230Z","dependency_job_id":null,"html_url":"https://github.com/xingjian-zhang/mini_chat","commit_stats":null,"previous_names":["xingjian-zhang/mini_chat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xingjian-zhang/mini_chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingjian-zhang%2Fmini_chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingjian-zhang%2Fmini_chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingjian-zhang%2Fmini_chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingjian-zhang%2Fmini_chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xingjian-zhang","download_url":"https://codeload.github.com/xingjian-zhang/mini_chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xingjian-zhang%2Fmini_chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["chatbot","cli","cli-app","llm","python","terminal","tui"],"created_at":"2025-04-11T05:58:15.422Z","updated_at":"2026-04-28T08:02:45.870Z","avatar_url":"https://github.com/xingjian-zhang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mini-chat 🐜\n\nA minimal terminal-based chatbot using Rich for UI and direct HTTP requests for API communication.\n\n![image](assets/image.png)\n\n## Features\n\n- 🎨 Rich terminal UI with syntax highlighting\n- ✨ Markdown support and streaming responses\n- ⚙️ Profile and configuration management\n- 🪶 Extremely lightweight\n\n## Installation\n\n```bash\n# Development setup\ngit clone https://github.com/xingjian-zhang/mini_chat.git\ncd mini_chat\nuv venv \u0026\u0026 uv pip install -e \".[dev]\"\n```\n\nSet your API key using OpenAI's standard environment variable:\n```bash\nexport OPENAI_API_KEY=your_key_here\n```\n\n## Configure Profiles\n\nThe chatbot supports multiple configuration profiles, allowing you to save different settings for different use cases. Profiles are stored as YAML files in the `~/.config/mini-chat/profiles/` directory.\n\nProfiles are managed by directly editing the YAML files:\n- Each profile is stored as a separate `\u003cprofile_name\u003e.yaml` file\n- The active profile is specified in `~/.config/mini-chat/active_profile.txt`\n- The default profile is used if none is specified\n\nYou can switch between profiles within the application using:\n```\n/profile use \u003cprofile_name\u003e\n```\n\n## Usage\n\nRun with `mini-chat` or `mc`\n\n### Basic Commands\n\n- Type normally to chat with the AI\n- `/help` - Show help\n- `/clear` - Clear conversation\n- `/exit` - Exit\n- `/system \u003cmsg\u003e` - Add system instructions\n- `/config` - View/change settings\n- `/profile use \u003cname\u003e` - Switch between profiles\n\n## Project Structure\n\n```\nmini_chat/\n├── __init__.py      # Package initialization\n├── __main__.py      # Application entry point\n├── api.py           # API communication layer\n├── cli.py           # Command-line interface handling\n├── config.py        # Configuration management\n├── models.py        # Data models\n├── ui.py            # User interface components\n└── utils.py         # Utility functions\n```\n\n## Development\n\n```bash\n# Lint and format\nruff check . --fix\nruff format .\n\n# Run tests\npytest\n```\n\nSee architecture.md for project structure details.\n\n## Roadmap\n\n- [ ] Support for additional LLM providers beyond OpenAI\n- [ ] Conversation history management and persistence\n- [ ] File attachment and context upload capabilities\n- [ ] Custom themes and UI configurations\n- [ ] MCP\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxingjian-zhang%2Fmini_chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxingjian-zhang%2Fmini_chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxingjian-zhang%2Fmini_chat/lists"}