{"id":15723443,"url":"https://github.com/ryoppippi/curxy","last_synced_at":"2025-05-16T14:09:12.959Z","repository":{"id":234491750,"uuid":"789008605","full_name":"ryoppippi/curxy","owner":"ryoppippi","description":"Simple proxy worker for using ollama in cursor","archived":false,"fork":false,"pushed_at":"2025-04-28T09:42:25.000Z","size":192,"stargazers_count":330,"open_issues_count":6,"forks_count":38,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T19:04:31.415Z","etag":null,"topics":["cursor","deno","hono","ollama","proxy-server"],"latest_commit_sha":null,"homepage":"https://jsr.io/@ryoppippi/curxy","language":"TypeScript","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/ryoppippi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yaml","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,"zenodo":null},"funding":{"github":"ryoppippi"}},"created_at":"2024-04-19T14:21:45.000Z","updated_at":"2025-05-06T11:17:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"acf3131d-1b41-4fc7-a49e-e073f523ef84","html_url":"https://github.com/ryoppippi/curxy","commit_stats":{"total_commits":42,"total_committers":3,"mean_commits":14.0,"dds":0.2142857142857143,"last_synced_commit":"78e79df5e01dbaf6d8c183918d6547f0257fccc1"},"previous_names":["ryoppippi/proxy-worker-for-cursor-with-ollama","ryoppippi/curxy"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fcurxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fcurxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fcurxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryoppippi%2Fcurxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryoppippi","download_url":"https://codeload.github.com/ryoppippi/curxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544158,"owners_count":22088808,"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":["cursor","deno","hono","ollama","proxy-server"],"created_at":"2024-10-03T22:11:39.361Z","updated_at":"2025-05-16T14:09:12.915Z","avatar_url":"https://github.com/ryoppippi.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ryoppippi"],"categories":["Other"],"sub_categories":[],"readme":"# curxy\n\n#### _cursor_ + _proxy_ = **curxy**\n\n[![JSR](https://jsr.io/badges/@ryoppippi/curxy)](https://jsr.io/@ryoppippi/curxy)\n[![JSR](https://jsr.io/badges/@ryoppippi/curxy/score)](https://jsr.io/@ryoppippi/curxy)\n\nAn proxy worker for using ollama in cursor\n\n## What is this?\n\nThis is a proxy worker for using ollama in cursor. It is a simple server that\nforwards requests to the ollama server and returns the response.\n\n## Why do you need this?\n\nWhen we use llm prediction on cusor editor, the editor sends to the data to the\nofficial cursor server, and the server sends the data to the ollama server.\nTherefore, even if the endpoint is set to localhost in the cursor editor\nconfiguration, the cursor server cannot send communication to the local server.\nSo, we need a proxy worker that can forward the data to the ollama server.\n\n## requirements\n\n- deno\n- ollama server\n\n## How to use\n\n1. Launch the ollama server\n\n2. Launch curxy\n\n   ```sh\n   deno run -A jsr:@ryoppippi/curxy\n   ```\n\n   if you limit the access to the ollama server, you can set `OPENAI_API_KEY`\n   environment variable.\n\n   ```bash\n   OPENAI_API_KEY=your_openai_api_key deno run -A jsr:@ryoppippi/curxy\n\n   Listening on http://127.0.0.1:62192/\n   ◐ Starting cloudflared tunnel to http://127.0.0.1:62192                                                                                                                                                                                                                                                           5:39:59 PM\n   Server running at: https://remaining-chen-composition-dressed.trycloudflare.com\n   ```\n\n   You can get the public URL hosted by cloudflare.\n\n3. Enter the URL provided by `curxy` with /v1 appended to it into the \"Override\n   OpenAl Base URL\" section of the cursor editor configuration.\n\n![cursor](https://github.com/user-attachments/assets/83a54310-0728-49d8-8c3f-b31e0d8e3e1b)\n\n4. Add model names you want to \"Model Names\" section of the cursor editor\n   configuration.\n\n![Screenshot 2024-08-22 at 23 42 33](https://github.com/user-attachments/assets/c24fed7c-c61e-46a0-b735-ccf594a96363)\n\n5. (Optional): Additionally, if you want to restrict access to this Proxy Server\n   for security reasons, you can set the OPENAI_API_KEY as an environment\n   variable, which will enable access restrictions based on the key.\n\n6. **Enjoy!**\n\nAlso, you can see help message by `deno run -A jsr:@ryoppippi/curxy --help`\n\n## Related\n\n[Japanese Article](https://zenn.dev/ryoppippi/articles/02c618452a1c9f)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryoppippi%2Fcurxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryoppippi%2Fcurxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryoppippi%2Fcurxy/lists"}