{"id":19516541,"url":"https://github.com/nyzss/cli-openai","last_synced_at":"2026-05-09T07:39:43.821Z","repository":{"id":262163676,"uuid":"886405307","full_name":"nyzss/cli-openai","owner":"nyzss","description":"OpenAI CLI tool made to learn about the API and Deno.","archived":false,"fork":false,"pushed_at":"2024-11-10T23:36:25.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T12:42:54.030Z","etag":null,"topics":["chatgpt","cli","deno","openai"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/nyzss.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}},"created_at":"2024-11-10T22:42:21.000Z","updated_at":"2024-11-10T23:36:28.000Z","dependencies_parsed_at":"2025-01-08T12:42:39.436Z","dependency_job_id":"ac905207-52e4-40ab-aa18-4ed5482b8fde","html_url":"https://github.com/nyzss/cli-openai","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"007a29aa7cf547066050747cd207465fd7c825d9"},"previous_names":["nyzss/cli-openai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyzss%2Fcli-openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyzss%2Fcli-openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyzss%2Fcli-openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyzss%2Fcli-openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nyzss","download_url":"https://codeload.github.com/nyzss/cli-openai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766621,"owners_count":19854119,"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":["chatgpt","cli","deno","openai"],"created_at":"2024-11-11T00:00:24.719Z","updated_at":"2026-05-09T07:39:38.803Z","avatar_url":"https://github.com/nyzss.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLI OpenAI Tool (Deno)\n\nA simple CLI tool to interact with OpenAI’s API using Deno. Send prompts, get responses, and log conversations locally. Built as a learning project.\n\n## Setup\n\n1. **Prerequisites**: Install [Deno](https://deno.land/).\n2. **Environment**: Create a `.env` file (based on `.env.template`) with:\n   ```env\n   OPENAI_API_KEY=\u003cyour_api_key\u003e\n   OPENAI_URL=https://api.openai.com/v1/chat/completions\n   ```\n\n## Usage\n\nRun with necessary permissions:\n\n```bash\ndeno run --allow-net --allow-read --allow-write your_script.ts\n```\n\n- **Prompt**: Enter a prompt when asked.\n- **Logs**: All prompts and responses are saved in `logs.json`.\n\n## Notes\n\n- `.env` keeps API keys hidden.\n- Run with `Ctrl+C` to exit.\n\n---\n\nThis is a learning project, and I’m open to suggestions for improvement!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyzss%2Fcli-openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyzss%2Fcli-openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyzss%2Fcli-openai/lists"}