Skip to content

Commit 70fd277

Browse files
authored
Merge pull request #16 from instavm/sbxclientapi
Option 3: openCode config
2 parents 73336dd + d23414f commit 70fd277

2 files changed

Lines changed: 33 additions & 4 deletions

File tree

README.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,36 @@ That's it! Claude Code now has access to all CodeRunner tools:
132132

133133
</details>
134134

135-
### Option 3: Python OpenAI Agents
135+
### Option 3: OpenCode Configuration
136+
137+
<details>
138+
<summary>Configure OpenCode to use CodeRunner as an MCP server:</summary>
139+
140+
![OpenCode Example](images/opencode-example.png)
141+
142+
Create or edit `~/.config/opencode/opencode.json`:
143+
144+
```json
145+
{
146+
"$schema": "https://opencode.ai/config.json",
147+
"mcp": {
148+
"coderunner": {
149+
"type": "remote",
150+
"url": "http://coderunner.local:8222/mcp",
151+
"enabled": true
152+
}
153+
}
154+
}
155+
```
156+
157+
After saving the configuration:
158+
1. Restart OpenCode
159+
2. CodeRunner tools will be available automatically
160+
3. Start executing Python code with full access to the sandboxed environment
161+
162+
</details>
163+
164+
### Option 4: Python OpenAI Agents
136165
<details>
137166
<summary>Use CodeRunner with OpenAI's Python agents library:</summary>
138167

@@ -152,7 +181,7 @@ That's it! Claude Code now has access to all CodeRunner tools:
152181
Enter prompts like "write python code to generate 100 prime numbers" and watch it execute safely in the sandbox!
153182
</details>
154183

155-
### Option 4: Gemini-CLI
184+
### Option 5: Gemini-CLI
156185
[Gemini CLI](https://github.com/google-gemini/gemini-cli) is recently launched by Google.
157186

158187
<details>
@@ -178,7 +207,7 @@ That's it! Claude Code now has access to all CodeRunner tools:
178207
![gemini2](images/gemini2.png)
179208

180209

181-
### Option 5: Kiro by Amazon
210+
### Option 6: Kiro by Amazon
182211
[Kiro](https://kiro.dev/blog/introducing-kiro/) is recently launched by Amazon.
183212

184213
<details>
@@ -207,7 +236,7 @@ That's it! Claude Code now has access to all CodeRunner tools:
207236
</details>
208237

209238

210-
### Option 6: Coderunner-UI (Offline AI Workspace)
239+
### Option 7: Coderunner-UI (Offline AI Workspace)
211240
[Coderunner-UI](https://github.com/instavm/coderunner-ui) is our own offline AI workspace tool designed for full privacy and local processing.
212241

213242
<details>

images/opencode-example.png

111 KB
Loading

0 commit comments

Comments
 (0)