OpenCode AI coding agent¶
OpenCode is an open-source coding agent based on a TUI (Terminal UI) and also features a Visual Studio Code integration. It is a competitor to OpenAI Codex and Anthropic Claude Code, while letting you choose between multiple LLMs.
The integration of OpenCode in Dataiku is done through Code Studios. It fully integrates with the LLM Mesh, so that all queries performed by OpenCode can go through the LLM Mesh for full control and cost tracing.
Setup (admin)¶
The capability is provided by the “OpenCode for Code Studios” plugin that you need to install.
Then, you need to define a Code Studio template, adding the “OpenCode block”.
You will need to configure which LLM to use. You can allow a single LLM, multiple LLMs, all LLMs of a connection, or all LLM of a connection type.
You can also configure OpenCode to not use the LLM Mesh and instead rely on users authenticating directly to 3rd party LLM providers.
Usage¶
Once you have started your Code Studio, simply open a terminal and run “opencode”. You can immediately start working with the Agent.
For more usage instructions, refer to the developer guide tutorial: Using a Code Assistant in VS Code with the OpenCode block