{"id":37142435,"url":"https://github.com/shuntaka9576/oax","last_synced_at":"2026-01-14T16:42:58.182Z","repository":{"id":148261895,"uuid":"619125912","full_name":"shuntaka9576/oax","owner":"shuntaka9576","description":"💥 CLI for OpenAI's ChatGPT","archived":false,"fork":false,"pushed_at":"2023-04-06T21:29:34.000Z","size":34,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T03:42:38.984Z","etag":null,"topics":["chatgpt","chatgpt-api","cli","openai"],"latest_commit_sha":null,"homepage":"","language":"Go","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/shuntaka9576.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":"2023-03-26T10:53:54.000Z","updated_at":"2025-07-02T09:37:25.000Z","dependencies_parsed_at":"2024-06-21T19:00:32.853Z","dependency_job_id":"ea39d64a-b67c-4344-ad87-65b84fda4f19","html_url":"https://github.com/shuntaka9576/oax","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/shuntaka9576/oax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Foax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Foax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Foax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Foax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shuntaka9576","download_url":"https://codeload.github.com/shuntaka9576/oax/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shuntaka9576%2Foax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28426212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["chatgpt","chatgpt-api","cli","openai"],"created_at":"2026-01-14T16:42:57.452Z","updated_at":"2026-01-14T16:42:58.175Z","avatar_url":"https://github.com/shuntaka9576.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oax(OpenAI eXecutor)\n\n💥 CLI for OpenAI's ChatGPT.\n\n*For basic use cases.*\n![gif](https://res.cloudinary.com/dkerzyk09/image/upload/v1679945948/tools/oax/oax-chat_0.0.3.gif)\n\n*Resuming chat sessions from a previous point.*\n![gif](https://res.cloudinary.com/dkerzyk09/image/upload/v1679946265/tools/oax/oax-chat-resume_0.0.3.gif)\n\n## Installation\n\n```bash\nbrew tap shuntaka9576/tap\nbrew install shuntaka9576/tap/oax\n```\n\n## Requirements\n\nCommand-line text editor tools (Vim/Neovim/Nano, etc.).\n\n## Quick Start\n\n\nOpen profile (`~/.config/oax/profiles.toml`).\n```bash\noax config --profiles\n```\n\nSpecify the OpenAI API API key in the apiKey field (replace `sk-xxxx`).\n```toml\n[[profiles]]\nname = \"personal\"\napiKey = \"sk-xxxx\" # \u003c--\ndefault = true\n```\n\nOpen setting (`~/.config/oax/settings.toml`).\n```bash\noax config --settings\n```\n\nSpecify edit to lunch editor. `vim` or `nvim`.\n```toml\n[setting]\n  editor = \"vim\" # \u003c--\n```\n\nStart ChatGPT. Default model `gpt-3.5-turbo`. Open ChatGPT request file (`~/.config/oax/chat-log/2006-01-02_15-04-05.toml`).\n```bash\noax chat\n```\n\nSpecify sent content to ChatGPT. exit with wq.\n```toml\n[[messages]]\n  role = \"user\"\n  content = '''\n# Remove this comment and specify content to send to OpenAI API; otherwise, nothing is sent.\n'''\n```\n\nStreaming response is returned from ChatGPT.\n```bash\n$ oax chat\nHello! How can I assist you today?\n\ncontinue (y/n)?: n\nsaved: ~/.config/oax/chat-log/2023-03-26_17-01-54.toml\n```\n\nWhen resuming, you can perform fuzzy search on chat history files by their titles.\n\n```bash\noax chat -c\n```\n\nFiles can be resumed from the middle of the process by specifying the full path of the file.\n```bash\noax chat -m \"gpt-3.5-turbo\" -f \"~/.config/oax/chat-log/2023-03-26_15-11-04.toml\"\n```\n\n\n## Configuration\n\n|File Path|Description|Open Command\n|---|---|---|\n|`~/.config/oax/settings.toml`|Specify command assist information for oax.|`oax config --settings`\n|`~/.config/oax/profiles.toml`|Specify information required for API connection.|`oax config --profiles`\n\n### Settings\n\n#### setting\n\n|Option|Description|Required|Default|\n|---|---|---|---|\n|editor|Integrated editor|true|`vim`|\n|chatLogDir|Directory for saving chat logs|false|`~/.config/oax/chat-log`|\n\ne.g.\n```toml\n[setting]\n  editor = \"nvim\"\n  chatLogDir = \"~/.config/oax/chat-log\"\n```\n\n#### chat\n\n|Option|Description|Required|Default|\n|---|---|---|---|\n|model|ChatGPT model|false|`gpt-3.5-turbo`|\n|fileNameFormat|Providing `${title}` placeholder|false|`%Y-%m-%d_%H-%M-%S`\n|chat.templates|Chat template|false||\n\n```toml\n[chat]\n  model = \"gpt-3.5-turbo\"\n  fileNameFormat = \"%Y-%m-%d_%H-%M-%S\"\n\n  [[chat.templates]]\n    name = \"friends\"\n\n    [[chat.templates.messages]]\n      role = \"system\"\n      content = \"You are ChatGPT, a large language model trained by OpenAI. You are a friendly assistant that can provide help, advice, and engage in casual conversations.\"\n```\n\nSpecify a model.\n```bash\noax chat -m \"gpt-4\"\n```\n\nSpecify a chat template\n```bash\noax chat -t \"friends\"\n```\n\n### Profiles\n\n|Option|Description|Required|Default|\n|---|---|---|---|\n|name|Profile name|true|`vim`|\n|apiKey|OpenAI API key|true|`~/.config/oax/chat-log`|\n|default|Set the default profile configuration (API key) to be used.|false. Please ensure that the \"default\" option is set for at least one Profile.|`true`|\n|organizationId|OpenAI Organization ID|false|\n\n\ne.g.\n```toml\n[[profiles]]\n  name = \"me\"\n  apiKey= \"sk-xxxx\"\n  default = true\n\n[[profiles]]\n  name = \"org\"\n  organizationId = \"\"\n```\n\n\n## Troubleshooting\n\n### Reset\n\n```bash\nrm -rf ~/.config/oax\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuntaka9576%2Foax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshuntaka9576%2Foax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshuntaka9576%2Foax/lists"}