{"id":29215543,"url":"https://github.com/cyansalt/openai-ollama","last_synced_at":"2026-04-08T12:02:13.501Z","repository":{"id":295616956,"uuid":"990695248","full_name":"CyanSalt/openai-ollama","owner":"CyanSalt","description":"Create a local Ollama proxy service for the OpenAI compatible backend.","archived":false,"fork":false,"pushed_at":"2025-11-28T02:31:07.000Z","size":378,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-29T20:53:04.596Z","etag":null,"topics":["copilot","ollama","openai","vscode"],"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/CyanSalt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-26T13:47:09.000Z","updated_at":"2025-11-28T02:31:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"566c2267-b8ef-4564-a56c-0d1caf1c3f65","html_url":"https://github.com/CyanSalt/openai-ollama","commit_stats":null,"previous_names":["cyansalt/openai-ollama"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/CyanSalt/openai-ollama","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fopenai-ollama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fopenai-ollama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fopenai-ollama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fopenai-ollama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CyanSalt","download_url":"https://codeload.github.com/CyanSalt/openai-ollama/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CyanSalt%2Fopenai-ollama/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"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":["copilot","ollama","openai","vscode"],"created_at":"2025-07-03T00:33:07.654Z","updated_at":"2026-04-08T12:02:13.409Z","avatar_url":"https://github.com/CyanSalt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openai-ollama\n\n[![npm](https://img.shields.io/npm/v/openai-ollama.svg)](https://www.npmjs.com/package/openai-ollama)\n\nCreate a local Ollama proxy service for the OpenAI compatible backend. This allows you to integrate your OpenAI backend in BYOK mode as an Ollama backend with other applications, such as VSCode GitHub Copilot.\n\n## Usage\n\n```shell\npnpm i -g openai-ollama\n\nopenai-ollama\n```\n\nOr just\n\n```shell\npnpm dlx openai-ollama\n```\n\n### Configuration\n\nThe recommended way is to configure OpenAI compatible backend and server via configuration files.\n\n```json\n{\n  \"baseURL\": \"\u003cYOUR_BASE_URL\u003e\",\n  \"apiKey\": \"\u003cYOUR_API_KEY\u003e\",\n  \"models\": [\n    {\n      \"id\": \"\u003cMODEL_ID\u003e\",\n      \"name\": \"\u003cMODEL_NAME\u003e\"\n    }\n  ]\n}\n```\n\nThen just pass the file argument to the CLI:\n\n```shell\nopenai-ollama --config-file=/path/to/config.json\n```\n\nAlternatively, you can configure **most** options through environment variables, or configure **a few** options through command line arguments. When used this way, command line arguments have a higher priority than configuration files, while environment variables always have the lowest priority.\n\nSupported options are as follows:\n\n- `apiKey`: (Required) API key for OpenAI compatible backends. Defaults to `OPENAI_API_KEY` environment variable.\n- `baseURL`: Base URL for OpenAI compatible backends. Defaults to `OPENAI_API_BASE` or `OPENAI_BASE_URL` environment variable, or `https://api.openai.com/v1`\n- `models`: Specifies the list of available models. The list of models will be obtained through the OpenAI compatible API (`/models`) if not specified, which is not supported by some backends.\n  - Elements in `models` are objects with the following properties, or the `id` property of the object.\n    - `id`: Unique ID of the model.\n    - `name`: Display name of the model.\n- `port` or `--port`: The port the server listens on. Defaults to `PORT` environment variable or `11434`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyansalt%2Fopenai-ollama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyansalt%2Fopenai-ollama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyansalt%2Fopenai-ollama/lists"}