[FEATURE]: Allow creating projects from the web client
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Would help it become more of a "standalone cloud IDE" which I think is a cool goal opencode is already quite close to.
This issue might be a duplicate of or related to existing issues. Please check:
- #1543: [Feature Request] Adding directories / creating workspaces - Requests workspace management and creation capabilities
- #3595: [FEATURE]: Start session in different workspace - Feature to switch/manage workspaces via API
- #4103: [FEATURE]:add-dir command - Directory management without full project scope
- #4767: opencode serve/web long waiting time - Performance issues with web server infrastructure
- #2032: [Request] Add documentation and examples for making alternate client (ie. not built in TUI) - Related to server-based architecture supporting web clients
- #4511: Can opencode be made to support GitHub Copilot Workspace agent configurations? - Cloud IDE workspace patterns
The core capability of creating projects from the web client might benefit from or be influenced by solutions in these related issues. Feel free to ignore if your specific use case differs from these.
Just making sure it's seen: I made a PR too, #5582
I'm looking to limit sessions to specific folders and I think that's what projects are for.
But how could I initiate a project from an existing repository?
My usecase here is this:
opencode server running on a remote host, which has our monorepo.
People talking to a slackbot to initiate changes, prepare PRs and the likes, I call the opencode server API to create new sessions and make worktrees to work on those. Currently I just have a script to create worktrees, which the agent calls and everything is in my / project. Not ideal since in theory other sessions can reach the other sessions worktrees.