{"id":19979217,"url":"https://github.com/shellfly/aoi","last_synced_at":"2025-05-04T04:32:41.231Z","repository":{"id":143546720,"uuid":"615307968","full_name":"shellfly/aoi","owner":"shellfly","description":"Ghost in the Shell powered by OpenAI (Terminal version of ChatGPT)","archived":false,"fork":false,"pushed_at":"2023-11-14T00:52:08.000Z","size":827,"stargazers_count":110,"open_issues_count":1,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-06-19T16:32:40.608Z","etag":null,"topics":["assistant-chat-bots","azure-openai","chatbot","chatgpt","chatgpt-api","command-line","openai","sql-client"],"latest_commit_sha":null,"homepage":"","language":"Go","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/shellfly.png","metadata":{"files":{"readme":"README-cn.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":"2023-03-17T12:04:57.000Z","updated_at":"2024-05-20T08:41:05.000Z","dependencies_parsed_at":"2024-06-19T16:02:24.098Z","dependency_job_id":"d82d3bae-ed2d-4f64-aa13-18b4ed83dbcd","html_url":"https://github.com/shellfly/aoi","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellfly%2Faoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellfly%2Faoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellfly%2Faoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellfly%2Faoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellfly","download_url":"https://codeload.github.com/shellfly/aoi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224385199,"owners_count":17302442,"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":["assistant-chat-bots","azure-openai","chatbot","chatgpt","chatgpt-api","command-line","openai","sql-client"],"created_at":"2024-11-13T03:37:08.970Z","updated_at":"2024-11-13T03:37:10.417Z","avatar_url":"https://github.com/shellfly.png","language":"Go","readme":"# Aoi (葵)\n\n由 OpenAI 驱动的 Ghost in the Shell\n\n使用 Aoi，可以在终端中与 AI 进行自然语言对话，它能够理解您的查询并执行适当的命令。\n\n## 功能\n Aoi 可以用作 ChatGPT 的终端版本，此外，Aoi 还带有几个内置功能提高使用效率：\n\n- `/code` - 生成代码片段并复制到剪贴板，例如 `/code go generate random numbers`\n- `/db` - 自动导入数据库表结构，生成 SQL 并在数据库上执行，例如 `/db postgres://user:passwd@host/db list tables`\n- `/shell` - 生成 shell 命令并执行，例如 `/shell view listening ports`\n- `/ssh` - 生成远程 shell 命令并执行，例如 `/ssh {host} view listening tcp ports`\\\n- `/summary` - 对URL内容进行总结，在指定语音的情况下翻译输出的内容`/summary {url}` `/summary cn {url}`\n- `/tldr` - 获取命令的 tl;dr 格式的解释\n- `/trans` - 将文本翻译为指定语言\n- `/copy` - 复制上一条回复\n\n## 入门指南\n可以从 GitHub 的[发布页面](https://github.com/shellfly/aoi/releases)下载 Aoi。或者，可以使用 Go 在系统上安装 Aoi：\n\n```bash\ngo install github.com/shellfly/aoi@latest\n```\n### OpenAI API Key\n将 OpenAI API 密钥设置为环境变量，然后运行 aoi 命令。\n\n```bash\n\nexport OPENAI_API_KEY=\u003cyour_api_key\u003e\n\naoi\n```\n\n### OpenAI API Base URL\n如有需要，也可自定义 OpenAI API BASE URL 为环境变量。\n\n```bash\nexport OPENAI_API_BASE_URL=\u003cyour_custom_api_base_url\u003e\n```\n\n### Azure OpenAI\n使用Azure的环境变量，并且传递`azure.deployment`参数来使用Azure OpenAI 服务\n\n```\nexport OPENAI_API_KEY={azure openai secret}\nexport OPENAI_API_BASE_URL={azure openai endpoint}\n\naoi -azure.deployment {model deployment name}\n```\n\n## 演示\n### shell\n[![shell](/doc/shell.gif)](https://asciinema.org/a/XjCGaMNf8Qp2nQ1UDlehjm5AN)\n\n### database\n[![pg](/doc/pg.gif)](https://asciinema.org/a/568712)\n\n## 贡献\n如果在使用 Aoi 时发现任何问题或有新功能的建议，请在 GitHub 存储库上创建问题或提交拉取请求。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellfly%2Faoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellfly%2Faoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellfly%2Faoi/lists"}