Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 33 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,36 @@ That's it! Claude Code now has access to all CodeRunner tools:

</details>

### Option 3: Python OpenAI Agents
### Option 3: OpenCode Configuration

<details>
<summary>Configure OpenCode to use CodeRunner as an MCP server:</summary>

![OpenCode Example](images/opencode-example.png)

Create or edit `~/.config/opencode/opencode.json`:

```json
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"coderunner": {
"type": "remote",
"url": "http://coderunner.local:8222/mcp",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The coderunner.local hostname might not resolve on all systems, which could cause this configuration to fail. Other examples in this repository (e.g., for OpenAI Agents and Claude Desktop) use a Python script to resolve this hostname to an IP address before using it. To improve user experience and prevent potential issues, consider adding a note for users on how to handle this if they face resolution problems. For example, you could add a sentence after the JSON block like:

Note: If coderunner.local does not resolve on your system, replace it with the IP address of the machine running CodeRunner.

"enabled": true
}
}
}
```

After saving the configuration:
1. Restart OpenCode
2. CodeRunner tools will be available automatically
3. Start executing Python code with full access to the sandboxed environment

</details>

### Option 4: Python OpenAI Agents
<details>
<summary>Use CodeRunner with OpenAI's Python agents library:</summary>

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

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

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


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

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


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

<details>
Expand Down
Binary file added images/opencode-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.