Feature request: Python SDK #1501

Closed
opened 2026-02-16 17:31:16 -05:00 by yindo · 11 comments
Owner

Originally created by @AYM1607 on GitHub (Aug 26, 2025).

Originally assigned to: @thdxr on GitHub.

Would it be possible to generate and publish a Python SDK? I know that it can be done with stainless, but don't know if you're willing to take on the publishing burden.

I'm working on a project that requires a python client to interact with the OpenCode server, having a pre-generated SDK would make it much easier!

Originally created by @AYM1607 on GitHub (Aug 26, 2025). Originally assigned to: @thdxr on GitHub. Would it be possible to generate and publish a Python SDK? I know that it can be done with stainless, but don't know if you're willing to take on the publishing burden. I'm working on a project that requires a python client to interact with the OpenCode server, having a pre-generated SDK would make it much easier!
yindo closed this issue 2026-02-16 17:31:16 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 26, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #865: Requests SDK functionality or MCP server exposure for creating external code question-answering tools
  • #2168: User is already developing a Python SDK using OpenAPI Generator and asking about API documentation
  • #2032: Request for documentation and examples for creating alternate clients (not built-in TUI)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 26, 2025): This issue might be a duplicate of existing issues. Please check: - #865: Requests SDK functionality or MCP server exposure for creating external code question-answering tools - #2168: User is already developing a Python SDK using OpenAPI Generator and asking about API documentation - #2032: Request for documentation and examples for creating alternate clients (not built-in TUI) Feel free to ignore if none of these address your specific case.
Author
Owner

@thdxr commented on GitHub (Aug 27, 2025):

we're trying to move off stainless and just pick good open source sdk generators per language. if there is a good python one we can add it

@thdxr commented on GitHub (Aug 27, 2025): we're trying to move off stainless and just pick good open source sdk generators per language. if there is a good python one we can add it
Author
Owner

@Kking112 commented on GitHub (Sep 19, 2025):

we're trying to move off stainless and just pick good open source sdk generators per language. if there is a good python one we can add it

I also would love a Python SDK for OpenCode, and a good open-source sdk generator specific for Python is openapi-python-client. If I were to implement this myself would you consider merging it? I know you guys don't take PRs for core features, so I'm not sure if this is considered that, but either way I am going to do it myself in my fork so please let me know if I should make my own issue and make a PR once I'm done. Thanks

@Kking112 commented on GitHub (Sep 19, 2025): > we're trying to move off stainless and just pick good open source sdk generators per language. if there is a good python one we can add it I also would love a Python SDK for OpenCode, and a good open-source sdk generator specific for Python is openapi-python-client. If I were to implement this myself would you consider merging it? I know you guys don't take PRs for core features, so I'm not sure if this is considered that, but either way I am going to do it myself in my fork so please let me know if I should make my own issue and make a PR once I'm done. Thanks
Author
Owner

@rekram1-node commented on GitHub (Sep 19, 2025):

@Kking112 I think opening a PR would be good, they would probably have some preferences but I think this would be welcome

@rekram1-node commented on GitHub (Sep 19, 2025): @Kking112 I think opening a PR would be good, they would probably have some preferences but I think this would be welcome
Author
Owner

@Kking112 commented on GitHub (Sep 19, 2025):

@Kking112 I think opening a PR would be good, they would probably have some preferences but I think this would be welcome

Okay, I will do that once I'm done. Hopefully by end of this weekend. Thanks

@Kking112 commented on GitHub (Sep 19, 2025): > [@Kking112](https://github.com/Kking112) I think opening a PR would be good, they would probably have some preferences but I think this would be welcome Okay, I will do that once I'm done. Hopefully by end of this weekend. Thanks
Author
Owner

@krishna1s commented on GitHub (Sep 23, 2025):

Is it official SDK - https://github.com/sst/opencode-sdk-python

@krishna1s commented on GitHub (Sep 23, 2025): Is it official SDK - https://github.com/sst/opencode-sdk-python
Author
Owner

@rekram1-node commented on GitHub (Sep 23, 2025):

that was originally being generated with stainless but it isn't being kept up to date anymore.

@rekram1-node commented on GitHub (Sep 23, 2025): that was originally being generated with stainless but it isn't being kept up to date anymore.
Author
Owner

@krishna1s commented on GitHub (Sep 24, 2025):

@rekram1-node
So it is not recommended to use it ?

@krishna1s commented on GitHub (Sep 24, 2025): @rekram1-node So it is not recommended to use it ?
Author
Owner

@rekram1-node commented on GitHub (Sep 24, 2025):

I wouldn’t recommend using it currently

@rekram1-node commented on GitHub (Sep 24, 2025): I wouldn’t recommend using it currently
Author
Owner

@Kking112 commented on GitHub (Sep 25, 2025):

I made a PR with a new Python SDK. Any feedback would be great. #2779

@Kking112 commented on GitHub (Sep 25, 2025): I made a PR with a new Python SDK. Any feedback would be great. #2779
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1501