{"id":21362717,"url":"https://github.com/mrgick/duck_chat","last_synced_at":"2025-07-13T03:31:17.580Z","repository":{"id":247226600,"uuid":"825106725","full_name":"mrgick/duck_chat","owner":"mrgick","description":"Reverse engineered DuckDuckGo AI chat API client.","archived":false,"fork":false,"pushed_at":"2024-08-21T16:04:06.000Z","size":74,"stargazers_count":35,"open_issues_count":6,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-05T21:39:42.334Z","etag":null,"topics":["ai-chat","duckduckgo","duckduckgo-ai","duckduckgo-chat","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/duck-chat/","language":"Python","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/mrgick.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}},"created_at":"2024-07-06T19:45:22.000Z","updated_at":"2024-11-01T17:08:57.000Z","dependencies_parsed_at":"2024-08-01T21:25:06.299Z","dependency_job_id":null,"html_url":"https://github.com/mrgick/duck_chat","commit_stats":null,"previous_names":["mrgick/duckduckgo-chat-ai","mrgick/duck_chat"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgick%2Fduck_chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgick%2Fduck_chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgick%2Fduck_chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrgick%2Fduck_chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrgick","download_url":"https://codeload.github.com/mrgick/duck_chat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225850156,"owners_count":17534067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-chat","duckduckgo","duckduckgo-ai","duckduckgo-chat","python"],"created_at":"2024-11-22T06:15:15.503Z","updated_at":"2024-11-22T06:15:33.503Z","avatar_url":"https://github.com/mrgick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A DuckDuckGo AI chat client written in python\n\nA python-implemented DuckDuckGo AI chat client with model selection and dialog history during usage. \n\n\u003e Based on the ideas of [duck-hey](https://github.com/b1ek/hey)\n\n## Disclaimer\nBy using this client you accept [DuckDuckGo AI Chat ToS](https://duckduckgo.com/aichat/privacy-terms)\n\n\n## Installation\n1. Install [python 3.12](https://www.python.org/downloads/)\n\n2. Create python venv (optionally)\n\n ```bash\n python -m venv .venv \u0026\u0026 source .venv/bin/activate\n ```\n\n3. Install package\n\n   - Install auto\n   ```bash\n   pip install -U https://github.com/mrgick/duckduckgo-chat-ai/archive/master.zip\n   ```\n   - Install manually\n     1. Clone repo\n\n       ```bash\n       git clone https://github.com/mrgick/duckduckgo-chat-ai.git \u0026\u0026 cd duckduckgo-chat-ai\n       ```\n     2. Install package\n\n       ```bash\n       pip install -U .\n       ```\n\n## Usage\n- Using terminal\n```bash\npython -m duck_chat\n```\nor\n```\nduck_chat\n```\n\n\u003e P.S. You can use hey config ```\".config/hey/conf.toml\"``` Thanks [k-aito](https://github.com/mrgick/duckduckgo-chat-ai/pull/1)\n\n\n- Using as library\n```py\nimport asyncio\nfrom duck_chat import DuckChat\n\nasync def main():\n    async with DuckChat() as chat:\n        print(await chat.ask_question(\"2+2?\"))\n        await asyncio.sleep(1)\n        print(await chat.ask_question(\"6+6?\"))\n\nasyncio.run(main())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgick%2Fduck_chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrgick%2Fduck_chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrgick%2Fduck_chat/lists"}