<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.stoney-cloud.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sst-pde</id>
	<title>MediaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stoney-cloud.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sst-pde"/>
	<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/wiki/Special:Contributions/Sst-pde"/>
	<updated>2026-11-03T21:37:56Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1305</id>
		<title>AI on demand: Configuring OpenCode Desktop</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1305"/>
		<updated>2026-11-03T15:06:29Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This guide walks through configuring the desktop variant of OpenCode. If you are looking for guidance on setting up the terminal version of OpenCode, see [[AI on demand: Configuring OpenCode Terminal]]&lt;br /&gt;
&lt;br /&gt;
The following steps describe how to create a basic OpenCode setup using models provided by stepping stone AG, and some good first steps to control and extend the agents capabilities.&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Remember that agents such as OpenCode can autonomously perform actions on the system they run, such as reading / editing files, making web requests, executing terminal commands, etc. Agents may also interpret untrusted inputs such as skills or AGENTS.md files as instructions. Consider carefully which actions an agent should be allowed to execute, and whether a container or VM solution may be appropriate to prevent your agent from accessing sensitive information.}}&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A valid [https://www.stepping-stone.ch/en/products/artificial-intelligence AI on Demand] API key.&lt;br /&gt;
* Network access to &amp;lt;code&amp;gt;https://llm.stoney-cloud.com/v1&amp;lt;/code&amp;gt;&lt;br /&gt;
* The ID of the AI models you wish to use with OpenCode (e.g. &lt;br /&gt;
* &#039;&#039;Optional:&#039;&#039; [https://nodejs.org Node.js] 20 or newer if you intend to install opencode via npm.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Download and install the [https://opencode.ai/v2/docs#desktop binary / package] appropriate for your system.&lt;br /&gt;
&lt;br /&gt;
Once complete, open the OpenCode desktop app to verify that the installation was successful&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200px&amp;gt;&lt;br /&gt;
OpenCode Desktop homepage.png|OpenCode Desktop&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure provider and models ==&lt;br /&gt;
&lt;br /&gt;
OpenCode desktop currently does not support adding custom model providers directly from its user interface. You will need to configure stepping stone AG as your provider by modifying your OpenCode configuration file to include the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;stepping-stone&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;stepping stone AG&amp;quot;,&lt;br /&gt;
      &amp;quot;package&amp;quot;: &amp;quot;@opencode/ai/providers/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {}&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Linux machines, the default location of your personal configuration file is &amp;lt;code&amp;gt;~/.config/opencode/opencode.jsonc&amp;lt;/code&amp;gt; or equivalent. See [https://opencode.ai/v2/docs/config/#locations https://opencode.ai/v2/docs/config/#locations] for more information on where to place the configuration file on your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When configuring stepping stone AG as your provider as above, OpenCode expects to find your API key in an environment variable called &amp;lt;code&amp;gt;STONEY_KEY&amp;lt;/code&amp;gt;. Alternatively you may add your key directly to the configuration file by removing the &amp;lt;code&amp;gt;&amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&amp;lt;/code&amp;gt; line, and adding your key as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;,&lt;br /&gt;
        &amp;quot;apiKey&amp;quot;: &amp;quot;YOUR API KEY GOES HERE&amp;quot;,&lt;br /&gt;
      },&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Your API key must be kept secret by you! Be careful where you store your key to prevent it from being stolen or abused by a third party.}}&lt;br /&gt;
&lt;br /&gt;
Next, you should configure at least one model you wish to use with OpenCode. The following is a configuration for the &amp;lt;code&amp;gt;GLM-5.3-Flash&amp;lt;/code&amp;gt; model provided by stepping stone AG:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;zai-org/GLM-5.3-Flash&amp;quot;: {&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;GLM 5.3 Flash&amp;quot;,&lt;br /&gt;
          &amp;quot;limit&amp;quot;: {&lt;br /&gt;
            &amp;quot;context&amp;quot;: 262144,&lt;br /&gt;
          },&lt;br /&gt;
          &amp;quot;cost&amp;quot;: {&lt;br /&gt;
            &amp;quot;input&amp;quot;: 0.3,&lt;br /&gt;
            &amp;quot;output&amp;quot;: 1.5,&lt;br /&gt;
            &amp;quot;cache&amp;quot;: {&lt;br /&gt;
              &amp;quot;read&amp;quot;: 0.045,&lt;br /&gt;
            },&lt;br /&gt;
          },&lt;br /&gt;
        },&lt;br /&gt;
      }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;zai-org/GLM-5.3-Flash&amp;lt;/code&amp;gt; with the ID of the particular model you wish to use, and refer to [https://www.stepping-stone.ch/en/products/artificial-intelligence https://www.stepping-stone.ch/en/products/artificial-intelligence] for pricing and context window limits. Additional model specific configuration can be added as needed. See [https://opencode.ai/v2/docs/models/ https://opencode.ai/v2/docs/models/] for further information on configuring models.&lt;br /&gt;
&lt;br /&gt;
To check if your configuration is correct, restart OpenCode after changing the configuration file. If the configuration is correct, stepping stone AG should appear as a configured provider, and your selected model in the available models list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Home_button.png|1. Open home page&lt;br /&gt;
OpenCode_settings_menu.png|2. Open settings menu&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Provider.png|3. Check that stepping stone AG appears as a provider&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model.png|4. Check that your selected model appears at the bottom of the list&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, start a new session, select the model you have just configured and enter a first prompt to test that the model is working correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model_selected.png|1. Start a new session and select a stepping stone AG provided model&lt;br /&gt;
OpenCode_Desktop_First_Prompt.png|2. Enter a first prompt to check that the configuration works&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure appearance and notifications ==&lt;br /&gt;
&lt;br /&gt;
You may customise the appearance and layout of the UI, notification settings, shortcuts and more via the settings menu.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_settings.png|Available settings submenus&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
OpenCode provides a built in sandbox to limit what actions an agent is allowed to perform. You can configure permissions via the configuration file (there is currently no option to configure permissions via the user interface). Permissions are defined as a list of rules. For each action (e.g. read/write a file, execute a shell command, etc.), you may define a set of rules, each with a pattern determining when the rule applies, and an effect to determine if the action is allowed, denied or requires explicit approval by the user. The following shows some examples of permission rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;permissions&amp;quot;: [&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;ask&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git status *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git push *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;deny&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;skill&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;read&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*.html&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Try to keep the permissions you define as restrictive as feasable. In particular, do not allow your agent to perform sensitive or dangerous actions without your explicit approval.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=While OpenCode provides a sandbox controlled via permissions, you should never rely exclusively on the sandbox to ensure that your agent does not perform dangerous actions or accesses sensitive data. Always exercise good judgement when deciding what your agent should be allowed to do.}}&lt;br /&gt;
&lt;br /&gt;
== Further steps ==&lt;br /&gt;
&lt;br /&gt;
You now have a basic OpenCode agent setup available to you. You may further customise and extend OpenCode in a variety of ways, such as by adding skills, configuring MCP servers or OpenCode plugins.&lt;br /&gt;
&lt;br /&gt;
Check [https://opencode.ai/v2/docs/ https://opencode.ai/v2/docs/] or the settings menu of OpenCode to see how you can extend your agent to your needs.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [https://opencode.ai/v2/docs/ OpenCode documentation]&lt;br /&gt;
* [https://opencode.ai/v2/docs/providers OpenCode providers guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/config OpenCode configuration reference] and [https://opencode.ai/config.json configuration schema]&lt;br /&gt;
* [https://opencode.ai/v2/docs/permissions OpenCode permissions guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/mcp-servers OpenCode MCP servers guide]&lt;br /&gt;
* [https://modelcontextprotocol.io Model Context Protocol specification]&lt;br /&gt;
* [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG – Artificial Intelligence]&lt;br /&gt;
* [[AI on Demand: Usage]]&lt;br /&gt;
&lt;br /&gt;
[[Category: AI on Demand]]&lt;br /&gt;
[[Category: OpenCode]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Terminal&amp;diff=1304</id>
		<title>AI on demand: Configuring OpenCode Terminal</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Terminal&amp;diff=1304"/>
		<updated>2026-11-03T15:06:17Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This guide walks through configuring the terminal variant of OpenCode. If you are looking for guidance on setting up the terminal version of OpenCode, see [[AI on demand: Configuring OpenCode Desktop]]&lt;br /&gt;
&lt;br /&gt;
The following steps describe how to create a basic OpenCode setup using models provided by stepping stone AG, and some good first steps to control and extend the agents capabilities.&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Remember that agents such as OpenCode can autonomously perform actions on the system they run, such as reading / editing files, making web requests, executing terminal commands, etc. Agents may also interpret untrusted inputs such as skills or AGENTS.md files as instructions. Consider carefully which actions an agent should be allowed to execute, and whether a container or VM solution may be appropriate to prevent your agent from accessing sensitive information.}}&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A valid [https://www.stepping-stone.ch/en/products/artificial-intelligence AI on Demand] API key.&lt;br /&gt;
* Network access to &amp;lt;code&amp;gt;https://llm.stoney-cloud.com/v1&amp;lt;/code&amp;gt;&lt;br /&gt;
* The ID of the AI models you wish to use with OpenCode (e.g. &lt;br /&gt;
* &#039;&#039;Optional:&#039;&#039; [https://nodejs.org Node.js] 20 or newer if you intend to install opencode via npm.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Use your JavaScript package manager of choice to install the terminal variant of OpenCode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
npm install -g @opencode/cli&lt;br /&gt;
# or&lt;br /&gt;
bun install -g --trust @opencode/cli&lt;br /&gt;
# or&lt;br /&gt;
brew install anomalyco/tap/opencode-v2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See [https://opencode.ai/v2/docs https://opencode.ai/v2/docs] for further information on how to install OpenCode.&lt;br /&gt;
&lt;br /&gt;
Verify that the installation was successful by starting OpenCode:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
opencode --version&lt;br /&gt;
opencode&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode TUI.png|thumb|OpenCode Terminal&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure provider and models ==&lt;br /&gt;
&lt;br /&gt;
To configure stepping stone AG as your provider, you must modify your OpenCode configuration file to include the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;stepping-stone&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;stepping stone AG&amp;quot;,&lt;br /&gt;
      &amp;quot;package&amp;quot;: &amp;quot;@opencode/ai/providers/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {}&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Linux machines, the default location of your personal configuration file is &amp;lt;code&amp;gt;~/.config/opencode/opencode.jsonc&amp;lt;/code&amp;gt; or equivalent. See [https://opencode.ai/v2/docs/config/#locations https://opencode.ai/v2/docs/config/#locations] for more information on where to place the configuration file on your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When configuring stepping stone AG as your provider as above, OpenCode expects to find your API key in an environment variable called &amp;lt;code&amp;gt;STONEY_KEY&amp;lt;/code&amp;gt;. Alternatively you may add your key directly to the configuration file by removing the &amp;lt;code&amp;gt;&amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&amp;lt;/code&amp;gt; line, and adding your key as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;,&lt;br /&gt;
        &amp;quot;apiKey&amp;quot;: &amp;quot;YOUR API KEY GOES HERE&amp;quot;,&lt;br /&gt;
      },&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Your API key must be kept secret by you! Be careful where you store your key to prevent it from being stolen or abused by a third party.}}&lt;br /&gt;
&lt;br /&gt;
Next, you should configure at least one model you wish to use with OpenCode. The following is a configuration for the &amp;lt;code&amp;gt;GLM-5.3-Flash&amp;lt;/code&amp;gt; model provided by stepping stone AG:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;zai-org/GLM-5.3-Flash&amp;quot;: {&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;GLM 5.3 Flash&amp;quot;,&lt;br /&gt;
          &amp;quot;limit&amp;quot;: {&lt;br /&gt;
            &amp;quot;context&amp;quot;: 262144,&lt;br /&gt;
          },&lt;br /&gt;
          &amp;quot;cost&amp;quot;: {&lt;br /&gt;
            &amp;quot;input&amp;quot;: 0.3,&lt;br /&gt;
            &amp;quot;output&amp;quot;: 1.5,&lt;br /&gt;
            &amp;quot;cache&amp;quot;: {&lt;br /&gt;
              &amp;quot;read&amp;quot;: 0.045,&lt;br /&gt;
            },&lt;br /&gt;
          },&lt;br /&gt;
        },&lt;br /&gt;
      }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;zai-org/GLM-5.3-Flash&amp;lt;/code&amp;gt; with the ID of the particular model you wish to use, and refer to [https://www.stepping-stone.ch/en/products/artificial-intelligence https://www.stepping-stone.ch/en/products/artificial-intelligence] for pricing and context window limits. Additional model specific configuration can be added as needed. See [https://opencode.ai/v2/docs/models/ https://opencode.ai/v2/docs/models/] for further information on configuring models.&lt;br /&gt;
&lt;br /&gt;
To check if your configuration is correct, restart OpenCode after changing the configuration file. If the configuration is correct, you should be able to select the newly added model hosted by stepping stone AG from the list of available models. You can open a selection of all models available to you via the shortcut &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt;. You may need to scroll to the end of the displayed list.&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_TUI_Model_selection.png|Model selection menu&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, select the newly added model, then enter a first prompt to test that the model is working correctly.&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_TUI_Initial_prompt.png|Enter an initial prompt&lt;br /&gt;
OpenCode_TUI_Initial_prompt_response.png|Check that you receive a response&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Useful short-cuts and menus ==&lt;br /&gt;
&lt;br /&gt;
The following is a list of useful shortcuts to get started with using OpenCode:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + P&amp;lt;/code&amp;gt;: Open the main menu to interact with the agent, manage sessions and MCP servers, configuration, theming, etc.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt;: Open a fresh session.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;L&amp;lt;/code&amp;gt;: Switch to another existing session.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;W&amp;lt;/code&amp;gt;: Close the current session tab.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt;: Switch the current model.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;: Switch the current agent mode.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;Q&amp;lt;/code&amp;gt;: Quit OpenCode.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + C&amp;lt;/code&amp;gt;: Clear prompt input field.&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
OpenCode provides a built in sandbox to limit what actions an agent is allowed to perform. You can configure permissions via the configuration file (there is currently no option to configure permissions via the user interface). Permissions are defined as a list of rules. For each action (e.g. read/write a file, execute a shell command, etc.), you may define a set of rules, each with a pattern determining when the rule applies, and an effect to determine if the action is allowed, denied or requires explicit approval by the user. The following shows some examples of permission rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;permissions&amp;quot;: [&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;ask&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git status *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git push *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;deny&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;skill&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;read&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*.html&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Try to keep the permissions you define as restrictive as feasable. In particular, do not allow your agent to perform sensitive or dangerous actions without your explicit approval.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=While OpenCode provides a sandbox controlled via permissions, you should never rely exclusively on the sandbox to ensure that your agent does not perform dangerous actions or accesses sensitive data. Always exercise good judgement when deciding what your agent should be allowed to do.}}&lt;br /&gt;
&lt;br /&gt;
== Further steps ==&lt;br /&gt;
&lt;br /&gt;
You now have a basic OpenCode agent setup available to you. You may further customise and extend OpenCode in a variety of ways, such as by adding skills, configuring MCP servers or OpenCode plugins.&lt;br /&gt;
&lt;br /&gt;
Check [https://opencode.ai/v2/docs/ https://opencode.ai/v2/docs/] to see how you can extend your configuration file to adapt your agent to your needs.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [https://opencode.ai/v2/docs/ OpenCode documentation]&lt;br /&gt;
* [https://opencode.ai/v2/docs/providers OpenCode providers guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/config OpenCode configuration reference] and [https://opencode.ai/config.json configuration schema]&lt;br /&gt;
* [https://opencode.ai/v2/docs/permissions OpenCode permissions guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/mcp-servers OpenCode MCP servers guide]&lt;br /&gt;
* [https://modelcontextprotocol.io Model Context Protocol specification]&lt;br /&gt;
* [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG – Artificial Intelligence]&lt;br /&gt;
* [[AI on Demand: Usage]]&lt;br /&gt;
&lt;br /&gt;
[[Category: AI on Demand]]&lt;br /&gt;
[[Category: OpenCode]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Terminal&amp;diff=1303</id>
		<title>AI on demand: Configuring OpenCode Terminal</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Terminal&amp;diff=1303"/>
		<updated>2026-11-03T15:05:58Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This guide walks through configuring the terminal variant of OpenCode. If you are looking for guidance on setting up the terminal version of OpenCode, see [[AI on demand: Configure OpenCode Desktop]]&lt;br /&gt;
&lt;br /&gt;
The following steps describe how to create a basic OpenCode setup using models provided by stepping stone AG, and some good first steps to control and extend the agents capabilities.&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Remember that agents such as OpenCode can autonomously perform actions on the system they run, such as reading / editing files, making web requests, executing terminal commands, etc. Agents may also interpret untrusted inputs such as skills or AGENTS.md files as instructions. Consider carefully which actions an agent should be allowed to execute, and whether a container or VM solution may be appropriate to prevent your agent from accessing sensitive information.}}&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A valid [https://www.stepping-stone.ch/en/products/artificial-intelligence AI on Demand] API key.&lt;br /&gt;
* Network access to &amp;lt;code&amp;gt;https://llm.stoney-cloud.com/v1&amp;lt;/code&amp;gt;&lt;br /&gt;
* The ID of the AI models you wish to use with OpenCode (e.g. &lt;br /&gt;
* &#039;&#039;Optional:&#039;&#039; [https://nodejs.org Node.js] 20 or newer if you intend to install opencode via npm.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Use your JavaScript package manager of choice to install the terminal variant of OpenCode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
npm install -g @opencode/cli&lt;br /&gt;
# or&lt;br /&gt;
bun install -g --trust @opencode/cli&lt;br /&gt;
# or&lt;br /&gt;
brew install anomalyco/tap/opencode-v2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See [https://opencode.ai/v2/docs https://opencode.ai/v2/docs] for further information on how to install OpenCode.&lt;br /&gt;
&lt;br /&gt;
Verify that the installation was successful by starting OpenCode:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
opencode --version&lt;br /&gt;
opencode&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode TUI.png|thumb|OpenCode Terminal&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure provider and models ==&lt;br /&gt;
&lt;br /&gt;
To configure stepping stone AG as your provider, you must modify your OpenCode configuration file to include the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;stepping-stone&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;stepping stone AG&amp;quot;,&lt;br /&gt;
      &amp;quot;package&amp;quot;: &amp;quot;@opencode/ai/providers/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {}&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Linux machines, the default location of your personal configuration file is &amp;lt;code&amp;gt;~/.config/opencode/opencode.jsonc&amp;lt;/code&amp;gt; or equivalent. See [https://opencode.ai/v2/docs/config/#locations https://opencode.ai/v2/docs/config/#locations] for more information on where to place the configuration file on your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When configuring stepping stone AG as your provider as above, OpenCode expects to find your API key in an environment variable called &amp;lt;code&amp;gt;STONEY_KEY&amp;lt;/code&amp;gt;. Alternatively you may add your key directly to the configuration file by removing the &amp;lt;code&amp;gt;&amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&amp;lt;/code&amp;gt; line, and adding your key as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;,&lt;br /&gt;
        &amp;quot;apiKey&amp;quot;: &amp;quot;YOUR API KEY GOES HERE&amp;quot;,&lt;br /&gt;
      },&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Your API key must be kept secret by you! Be careful where you store your key to prevent it from being stolen or abused by a third party.}}&lt;br /&gt;
&lt;br /&gt;
Next, you should configure at least one model you wish to use with OpenCode. The following is a configuration for the &amp;lt;code&amp;gt;GLM-5.3-Flash&amp;lt;/code&amp;gt; model provided by stepping stone AG:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;zai-org/GLM-5.3-Flash&amp;quot;: {&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;GLM 5.3 Flash&amp;quot;,&lt;br /&gt;
          &amp;quot;limit&amp;quot;: {&lt;br /&gt;
            &amp;quot;context&amp;quot;: 262144,&lt;br /&gt;
          },&lt;br /&gt;
          &amp;quot;cost&amp;quot;: {&lt;br /&gt;
            &amp;quot;input&amp;quot;: 0.3,&lt;br /&gt;
            &amp;quot;output&amp;quot;: 1.5,&lt;br /&gt;
            &amp;quot;cache&amp;quot;: {&lt;br /&gt;
              &amp;quot;read&amp;quot;: 0.045,&lt;br /&gt;
            },&lt;br /&gt;
          },&lt;br /&gt;
        },&lt;br /&gt;
      }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;zai-org/GLM-5.3-Flash&amp;lt;/code&amp;gt; with the ID of the particular model you wish to use, and refer to [https://www.stepping-stone.ch/en/products/artificial-intelligence https://www.stepping-stone.ch/en/products/artificial-intelligence] for pricing and context window limits. Additional model specific configuration can be added as needed. See [https://opencode.ai/v2/docs/models/ https://opencode.ai/v2/docs/models/] for further information on configuring models.&lt;br /&gt;
&lt;br /&gt;
To check if your configuration is correct, restart OpenCode after changing the configuration file. If the configuration is correct, you should be able to select the newly added model hosted by stepping stone AG from the list of available models. You can open a selection of all models available to you via the shortcut &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt;. You may need to scroll to the end of the displayed list.&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_TUI_Model_selection.png|Model selection menu&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, select the newly added model, then enter a first prompt to test that the model is working correctly.&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_TUI_Initial_prompt.png|Enter an initial prompt&lt;br /&gt;
OpenCode_TUI_Initial_prompt_response.png|Check that you receive a response&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Useful short-cuts and menus ==&lt;br /&gt;
&lt;br /&gt;
The following is a list of useful shortcuts to get started with using OpenCode:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + P&amp;lt;/code&amp;gt;: Open the main menu to interact with the agent, manage sessions and MCP servers, configuration, theming, etc.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt;: Open a fresh session.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;L&amp;lt;/code&amp;gt;: Switch to another existing session.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;W&amp;lt;/code&amp;gt;: Close the current session tab.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt;: Switch the current model.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;: Switch the current agent mode.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;Q&amp;lt;/code&amp;gt;: Quit OpenCode.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + C&amp;lt;/code&amp;gt;: Clear prompt input field.&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
OpenCode provides a built in sandbox to limit what actions an agent is allowed to perform. You can configure permissions via the configuration file (there is currently no option to configure permissions via the user interface). Permissions are defined as a list of rules. For each action (e.g. read/write a file, execute a shell command, etc.), you may define a set of rules, each with a pattern determining when the rule applies, and an effect to determine if the action is allowed, denied or requires explicit approval by the user. The following shows some examples of permission rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;permissions&amp;quot;: [&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;ask&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git status *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git push *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;deny&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;skill&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;read&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*.html&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Try to keep the permissions you define as restrictive as feasable. In particular, do not allow your agent to perform sensitive or dangerous actions without your explicit approval.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=While OpenCode provides a sandbox controlled via permissions, you should never rely exclusively on the sandbox to ensure that your agent does not perform dangerous actions or accesses sensitive data. Always exercise good judgement when deciding what your agent should be allowed to do.}}&lt;br /&gt;
&lt;br /&gt;
== Further steps ==&lt;br /&gt;
&lt;br /&gt;
You now have a basic OpenCode agent setup available to you. You may further customise and extend OpenCode in a variety of ways, such as by adding skills, configuring MCP servers or OpenCode plugins.&lt;br /&gt;
&lt;br /&gt;
Check [https://opencode.ai/v2/docs/ https://opencode.ai/v2/docs/] to see how you can extend your configuration file to adapt your agent to your needs.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [https://opencode.ai/v2/docs/ OpenCode documentation]&lt;br /&gt;
* [https://opencode.ai/v2/docs/providers OpenCode providers guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/config OpenCode configuration reference] and [https://opencode.ai/config.json configuration schema]&lt;br /&gt;
* [https://opencode.ai/v2/docs/permissions OpenCode permissions guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/mcp-servers OpenCode MCP servers guide]&lt;br /&gt;
* [https://modelcontextprotocol.io Model Context Protocol specification]&lt;br /&gt;
* [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG – Artificial Intelligence]&lt;br /&gt;
* [[AI on Demand: Usage]]&lt;br /&gt;
&lt;br /&gt;
[[Category: AI on Demand]]&lt;br /&gt;
[[Category: OpenCode]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=Main_Page&amp;diff=1302</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=Main_Page&amp;diff=1302"/>
		<updated>2026-11-03T15:05:47Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: /* Artificial Intelligence (AI) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float:left; width:48%;&amp;quot;&amp;gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Welcome to the wiki of our [https://www.openstack.org/ OpenStack] based [https://www.stoney-cloud.com/ stoney cloud] infrastructure.&lt;br /&gt;
This collection serves as a comprehensive resource for all aspects of our cloud environment. Here, you will find guides for managing and utilizing our stoney cloud.&lt;br /&gt;
&lt;br /&gt;
== OpenStack - Getting started ==&lt;br /&gt;
[[Quickstart|OpenStack quick start guide]]&lt;br /&gt;
&lt;br /&gt;
== OpenStack - Usage ==&lt;br /&gt;
[[:Category:Projects|Projects]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Instances|Instances]]&lt;br /&gt;
* [[VM creation (Linux)]]&lt;br /&gt;
* [[VM creation (Windows)]]&lt;br /&gt;
* [[VM resize (Linux)]]&lt;br /&gt;
* [[VM resize (Windows)]]&lt;br /&gt;
* [[Flavor explanation]]&lt;br /&gt;
[[:Category:Volumes|Volumes]]&lt;br /&gt;
* [[Quota]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Images|Images]]&lt;br /&gt;
* [[Image creation]]&lt;br /&gt;
[[:Category:Network|Network]]&lt;br /&gt;
* [[Security group rules]]&lt;br /&gt;
* [[IP usage]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Object store|Object store]]&lt;br /&gt;
* [[S3 buckets]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Kubernetes|Kubernetes]]&lt;br /&gt;
* [[Kubernetes management]]&lt;br /&gt;
* [[Kubernetes usage]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Backup|Backup]]&lt;br /&gt;
* [[Kopia restore process]]&lt;br /&gt;
[[:Category:Troubleshooting|Troubleshooting]]&lt;br /&gt;
* [[PCI workaround]]&lt;br /&gt;
* [[Change user password]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width:48%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Artificial Intelligence (AI) ==&lt;br /&gt;
[[AI on Demand: Usage]] (list models, show usage, ...)&lt;br /&gt;
&lt;br /&gt;
[[:Category: General purpose models|General purpose models]]&lt;br /&gt;
* [[AI on demand: apertus-ai/Apertus-v1.5-8B]]&lt;br /&gt;
* [[AI on demand: deepseek-ai/DeepSeek-V4-Flash-0731]]&lt;br /&gt;
* [[AI on demand: google/gemma-4-31B-it]]&lt;br /&gt;
* [[AI on demand: MiniMaxAI/MiniMax-M2.5]]&lt;br /&gt;
* [[AI on demand: NVIDIA/NVIDIA-Nemotron-3-Super-120B-A12B]]&lt;br /&gt;
* [[AI on demand: openai/gpt-oss-120b]]&lt;br /&gt;
* [[AI on demand: opendatalab/MinerU2.5-2509-1.2B]]&lt;br /&gt;
* [[AI on demand: Qwen/Qwen3-Coder-Next]]&lt;br /&gt;
* [[AI on demand: Qwen/Qwen3.5-35B-A3B-FP8]]&lt;br /&gt;
* [[AI on demand: Qwen/Qwen3.8-27B]]&lt;br /&gt;
* [[AI on demand: zai-org/GLM-5.3-Flash]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: OCR models|OCR models]]&lt;br /&gt;
* [[AI on demand: allenai/olmOCR-2-7B]]&lt;br /&gt;
* [[AI on demand: lightonai/LightOnOCR-2-1B]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: Text to Image models|Text to Image models]]&lt;br /&gt;
* [[AI on demand: black-forest-labs/FLUX.1-schnell]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: Audio models|Audio models]]&lt;br /&gt;
* [[AI on demand: mistralai/Voxtral-Mini-3B-2507]]&lt;br /&gt;
* [[AI on demand: openai/whisper-large-v3]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: Embedding models|Embedding models]]&lt;br /&gt;
* [[AI on demand: BAAI/bge-m3]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: Reranking models|Reranking models]]&lt;br /&gt;
* [[AI on demand: BAAI/bge-reranker-v2-m3]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: System One decision models|System One decision models]]&lt;br /&gt;
* [[AI on demand: convaiinnovations/laya]]&lt;br /&gt;
* [[AI on demand: jaredpalmer/kev-27b]]&lt;br /&gt;
* [[AI on demand: Mapika/decider-31b]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: OpenCode]]&lt;br /&gt;
* [[AI on demand: Configuring OpenCode Desktop]]&lt;br /&gt;
* [[AI on demand: Configuring OpenCode Terminal]]&lt;br /&gt;
&lt;br /&gt;
== Quick links ==&lt;br /&gt;
* [https://www.stoney-cloud.com/ stoney cloud Website]&lt;br /&gt;
* [https://dashboard.stoney-cloud.com/ stoney cloud Dashboard]&lt;br /&gt;
* [https://docs.openstack.org/horizon/latest/user/index.html Official OpenStack Dashboard Documentation]&lt;br /&gt;
* [https://docs.openstack.org/python-openstackclient/latest/cli/index.html Official OpenStack CLI Documentation]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both; height:0px; line-height:0px;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Terminal&amp;diff=1301</id>
		<title>AI on demand: Configuring OpenCode Terminal</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Terminal&amp;diff=1301"/>
		<updated>2026-11-03T15:05:33Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Created page with &amp;quot;== Overview ==  [https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.  &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; This guide walks through confi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This guide walks through configuring the terminal variant of OpenCode. If you are looking for guidance on setting up the terminal version of OpenCode, see [[AI on Demand: Configure OpenCode Desktop]]&lt;br /&gt;
&lt;br /&gt;
The following steps describe how to create a basic OpenCode setup using models provided by stepping stone AG, and some good first steps to control and extend the agents capabilities.&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Remember that agents such as OpenCode can autonomously perform actions on the system they run, such as reading / editing files, making web requests, executing terminal commands, etc. Agents may also interpret untrusted inputs such as skills or AGENTS.md files as instructions. Consider carefully which actions an agent should be allowed to execute, and whether a container or VM solution may be appropriate to prevent your agent from accessing sensitive information.}}&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A valid [https://www.stepping-stone.ch/en/products/artificial-intelligence AI on Demand] API key.&lt;br /&gt;
* Network access to &amp;lt;code&amp;gt;https://llm.stoney-cloud.com/v1&amp;lt;/code&amp;gt;&lt;br /&gt;
* The ID of the AI models you wish to use with OpenCode (e.g. &lt;br /&gt;
* &#039;&#039;Optional:&#039;&#039; [https://nodejs.org Node.js] 20 or newer if you intend to install opencode via npm.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Use your JavaScript package manager of choice to install the terminal variant of OpenCode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
npm install -g @opencode/cli&lt;br /&gt;
# or&lt;br /&gt;
bun install -g --trust @opencode/cli&lt;br /&gt;
# or&lt;br /&gt;
brew install anomalyco/tap/opencode-v2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See [https://opencode.ai/v2/docs https://opencode.ai/v2/docs] for further information on how to install OpenCode.&lt;br /&gt;
&lt;br /&gt;
Verify that the installation was successful by starting OpenCode:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
opencode --version&lt;br /&gt;
opencode&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode TUI.png|thumb|OpenCode Terminal&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure provider and models ==&lt;br /&gt;
&lt;br /&gt;
To configure stepping stone AG as your provider, you must modify your OpenCode configuration file to include the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;stepping-stone&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;stepping stone AG&amp;quot;,&lt;br /&gt;
      &amp;quot;package&amp;quot;: &amp;quot;@opencode/ai/providers/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {}&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Linux machines, the default location of your personal configuration file is &amp;lt;code&amp;gt;~/.config/opencode/opencode.jsonc&amp;lt;/code&amp;gt; or equivalent. See [https://opencode.ai/v2/docs/config/#locations https://opencode.ai/v2/docs/config/#locations] for more information on where to place the configuration file on your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When configuring stepping stone AG as your provider as above, OpenCode expects to find your API key in an environment variable called &amp;lt;code&amp;gt;STONEY_KEY&amp;lt;/code&amp;gt;. Alternatively you may add your key directly to the configuration file by removing the &amp;lt;code&amp;gt;&amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&amp;lt;/code&amp;gt; line, and adding your key as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;,&lt;br /&gt;
        &amp;quot;apiKey&amp;quot;: &amp;quot;YOUR API KEY GOES HERE&amp;quot;,&lt;br /&gt;
      },&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Your API key must be kept secret by you! Be careful where you store your key to prevent it from being stolen or abused by a third party.}}&lt;br /&gt;
&lt;br /&gt;
Next, you should configure at least one model you wish to use with OpenCode. The following is a configuration for the &amp;lt;code&amp;gt;GLM-5.3-Flash&amp;lt;/code&amp;gt; model provided by stepping stone AG:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;zai-org/GLM-5.3-Flash&amp;quot;: {&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;GLM 5.3 Flash&amp;quot;,&lt;br /&gt;
          &amp;quot;limit&amp;quot;: {&lt;br /&gt;
            &amp;quot;context&amp;quot;: 262144,&lt;br /&gt;
          },&lt;br /&gt;
          &amp;quot;cost&amp;quot;: {&lt;br /&gt;
            &amp;quot;input&amp;quot;: 0.3,&lt;br /&gt;
            &amp;quot;output&amp;quot;: 1.5,&lt;br /&gt;
            &amp;quot;cache&amp;quot;: {&lt;br /&gt;
              &amp;quot;read&amp;quot;: 0.045,&lt;br /&gt;
            },&lt;br /&gt;
          },&lt;br /&gt;
        },&lt;br /&gt;
      }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;zai-org/GLM-5.3-Flash&amp;lt;/code&amp;gt; with the ID of the particular model you wish to use, and refer to [https://www.stepping-stone.ch/en/products/artificial-intelligence https://www.stepping-stone.ch/en/products/artificial-intelligence] for pricing and context window limits. Additional model specific configuration can be added as needed. See [https://opencode.ai/v2/docs/models/ https://opencode.ai/v2/docs/models/] for further information on configuring models.&lt;br /&gt;
&lt;br /&gt;
To check if your configuration is correct, restart OpenCode after changing the configuration file. If the configuration is correct, you should be able to select the newly added model hosted by stepping stone AG from the list of available models. You can open a selection of all models available to you via the shortcut &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;m&amp;lt;/code&amp;gt;. You may need to scroll to the end of the displayed list.&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_TUI_Model_selection.png|Model selection menu&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, select the newly added model, then enter a first prompt to test that the model is working correctly.&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_TUI_Initial_prompt.png|Enter an initial prompt&lt;br /&gt;
OpenCode_TUI_Initial_prompt_response.png|Check that you receive a response&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Useful short-cuts and menus ==&lt;br /&gt;
&lt;br /&gt;
The following is a list of useful shortcuts to get started with using OpenCode:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + P&amp;lt;/code&amp;gt;: Open the main menu to interact with the agent, manage sessions and MCP servers, configuration, theming, etc.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt;: Open a fresh session.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;L&amp;lt;/code&amp;gt;: Switch to another existing session.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;W&amp;lt;/code&amp;gt;: Close the current session tab.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt;: Switch the current model.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;: Switch the current agent mode.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + X&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;Q&amp;lt;/code&amp;gt;: Quit OpenCode.&lt;br /&gt;
* &amp;lt;code&amp;gt;CTRL + C&amp;lt;/code&amp;gt;: Clear prompt input field.&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
OpenCode provides a built in sandbox to limit what actions an agent is allowed to perform. You can configure permissions via the configuration file (there is currently no option to configure permissions via the user interface). Permissions are defined as a list of rules. For each action (e.g. read/write a file, execute a shell command, etc.), you may define a set of rules, each with a pattern determining when the rule applies, and an effect to determine if the action is allowed, denied or requires explicit approval by the user. The following shows some examples of permission rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;permissions&amp;quot;: [&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;ask&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git status *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git push *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;deny&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;skill&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;read&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*.html&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Try to keep the permissions you define as restrictive as feasable. In particular, do not allow your agent to perform sensitive or dangerous actions without your explicit approval.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=While OpenCode provides a sandbox controlled via permissions, you should never rely exclusively on the sandbox to ensure that your agent does not perform dangerous actions or accesses sensitive data. Always exercise good judgement when deciding what your agent should be allowed to do.}}&lt;br /&gt;
&lt;br /&gt;
== Further steps ==&lt;br /&gt;
&lt;br /&gt;
You now have a basic OpenCode agent setup available to you. You may further customise and extend OpenCode in a variety of ways, such as by adding skills, configuring MCP servers or OpenCode plugins.&lt;br /&gt;
&lt;br /&gt;
Check [https://opencode.ai/v2/docs/ https://opencode.ai/v2/docs/] to see how you can extend your configuration file to adapt your agent to your needs.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [https://opencode.ai/v2/docs/ OpenCode documentation]&lt;br /&gt;
* [https://opencode.ai/v2/docs/providers OpenCode providers guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/config OpenCode configuration reference] and [https://opencode.ai/config.json configuration schema]&lt;br /&gt;
* [https://opencode.ai/v2/docs/permissions OpenCode permissions guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/mcp-servers OpenCode MCP servers guide]&lt;br /&gt;
* [https://modelcontextprotocol.io Model Context Protocol specification]&lt;br /&gt;
* [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG – Artificial Intelligence]&lt;br /&gt;
* [[AI on Demand: Usage]]&lt;br /&gt;
&lt;br /&gt;
[[Category: AI on Demand]]&lt;br /&gt;
[[Category: OpenCode]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI_Initial_prompt_response.png&amp;diff=1300</id>
		<title>File:OpenCode TUI Initial prompt response.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI_Initial_prompt_response.png&amp;diff=1300"/>
		<updated>2026-11-03T14:58:10Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI_Initial_prompt.png&amp;diff=1299</id>
		<title>File:OpenCode TUI Initial prompt.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI_Initial_prompt.png&amp;diff=1299"/>
		<updated>2026-11-03T14:56:54Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI_Model_selection.png&amp;diff=1298</id>
		<title>File:OpenCode TUI Model selection.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI_Model_selection.png&amp;diff=1298"/>
		<updated>2026-11-03T14:54:53Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI.png&amp;diff=1297</id>
		<title>File:OpenCode TUI.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI.png&amp;diff=1297"/>
		<updated>2026-11-03T14:52:00Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Sst-pde uploaded a new version of File:OpenCode TUI.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenCode TUI adter startup&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=Main_Page&amp;diff=1296</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=Main_Page&amp;diff=1296"/>
		<updated>2026-11-03T14:46:38Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: /* Artificial Intelligence (AI) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;float:left; width:48%;&amp;quot;&amp;gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Welcome to the wiki of our [https://www.openstack.org/ OpenStack] based [https://www.stoney-cloud.com/ stoney cloud] infrastructure.&lt;br /&gt;
This collection serves as a comprehensive resource for all aspects of our cloud environment. Here, you will find guides for managing and utilizing our stoney cloud.&lt;br /&gt;
&lt;br /&gt;
== OpenStack - Getting started ==&lt;br /&gt;
[[Quickstart|OpenStack quick start guide]]&lt;br /&gt;
&lt;br /&gt;
== OpenStack - Usage ==&lt;br /&gt;
[[:Category:Projects|Projects]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Instances|Instances]]&lt;br /&gt;
* [[VM creation (Linux)]]&lt;br /&gt;
* [[VM creation (Windows)]]&lt;br /&gt;
* [[VM resize (Linux)]]&lt;br /&gt;
* [[VM resize (Windows)]]&lt;br /&gt;
* [[Flavor explanation]]&lt;br /&gt;
[[:Category:Volumes|Volumes]]&lt;br /&gt;
* [[Quota]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Images|Images]]&lt;br /&gt;
* [[Image creation]]&lt;br /&gt;
[[:Category:Network|Network]]&lt;br /&gt;
* [[Security group rules]]&lt;br /&gt;
* [[IP usage]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Object store|Object store]]&lt;br /&gt;
* [[S3 buckets]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Kubernetes|Kubernetes]]&lt;br /&gt;
* [[Kubernetes management]]&lt;br /&gt;
* [[Kubernetes usage]]&lt;br /&gt;
&lt;br /&gt;
[[:Category:Backup|Backup]]&lt;br /&gt;
* [[Kopia restore process]]&lt;br /&gt;
[[:Category:Troubleshooting|Troubleshooting]]&lt;br /&gt;
* [[PCI workaround]]&lt;br /&gt;
* [[Change user password]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; width:48%&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Artificial Intelligence (AI) ==&lt;br /&gt;
[[AI on Demand: Usage]] (list models, show usage, ...)&lt;br /&gt;
&lt;br /&gt;
[[:Category: General purpose models|General purpose models]]&lt;br /&gt;
* [[AI on demand: apertus-ai/Apertus-v1.5-8B]]&lt;br /&gt;
* [[AI on demand: deepseek-ai/DeepSeek-V4-Flash-0731]]&lt;br /&gt;
* [[AI on demand: google/gemma-4-31B-it]]&lt;br /&gt;
* [[AI on demand: MiniMaxAI/MiniMax-M2.5]]&lt;br /&gt;
* [[AI on demand: NVIDIA/NVIDIA-Nemotron-3-Super-120B-A12B]]&lt;br /&gt;
* [[AI on demand: openai/gpt-oss-120b]]&lt;br /&gt;
* [[AI on demand: opendatalab/MinerU2.5-2509-1.2B]]&lt;br /&gt;
* [[AI on demand: Qwen/Qwen3-Coder-Next]]&lt;br /&gt;
* [[AI on demand: Qwen/Qwen3.5-35B-A3B-FP8]]&lt;br /&gt;
* [[AI on demand: Qwen/Qwen3.8-27B]]&lt;br /&gt;
* [[AI on demand: zai-org/GLM-5.3-Flash]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: OCR models|OCR models]]&lt;br /&gt;
* [[AI on demand: allenai/olmOCR-2-7B]]&lt;br /&gt;
* [[AI on demand: lightonai/LightOnOCR-2-1B]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: Text to Image models|Text to Image models]]&lt;br /&gt;
* [[AI on demand: black-forest-labs/FLUX.1-schnell]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: Audio models|Audio models]]&lt;br /&gt;
* [[AI on demand: mistralai/Voxtral-Mini-3B-2507]]&lt;br /&gt;
* [[AI on demand: openai/whisper-large-v3]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: Embedding models|Embedding models]]&lt;br /&gt;
* [[AI on demand: BAAI/bge-m3]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: Reranking models|Reranking models]]&lt;br /&gt;
* [[AI on demand: BAAI/bge-reranker-v2-m3]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: System One decision models|System One decision models]]&lt;br /&gt;
* [[AI on demand: convaiinnovations/laya]]&lt;br /&gt;
* [[AI on demand: jaredpalmer/kev-27b]]&lt;br /&gt;
* [[AI on demand: Mapika/decider-31b]]&lt;br /&gt;
&lt;br /&gt;
[[:Category: OpenCode]]&lt;br /&gt;
* [[AI on demand: Configuring OpenCode Desktop]]&lt;br /&gt;
&lt;br /&gt;
== Quick links ==&lt;br /&gt;
* [https://www.stoney-cloud.com/ stoney cloud Website]&lt;br /&gt;
* [https://dashboard.stoney-cloud.com/ stoney cloud Dashboard]&lt;br /&gt;
* [https://docs.openstack.org/horizon/latest/user/index.html Official OpenStack Dashboard Documentation]&lt;br /&gt;
* [https://docs.openstack.org/python-openstackclient/latest/cli/index.html Official OpenStack CLI Documentation]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;div style=&amp;quot;clear:both; height:0px; line-height:0px;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_Demand:_Configuring_OpenCode_Desktop&amp;diff=1295</id>
		<title>AI on Demand: Configuring OpenCode Desktop</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_Demand:_Configuring_OpenCode_Desktop&amp;diff=1295"/>
		<updated>2026-11-03T14:46:12Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Sst-pde moved page AI on Demand: Configuring OpenCode Desktop to AI on demand: Configuring OpenCode Desktop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[AI on demand: Configuring OpenCode Desktop]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1294</id>
		<title>AI on demand: Configuring OpenCode Desktop</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1294"/>
		<updated>2026-11-03T14:46:12Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Sst-pde moved page AI on Demand: Configuring OpenCode Desktop to AI on demand: Configuring OpenCode Desktop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This guide walks through configuring the desktop variant of OpenCode. If you are looking for guidance on setting up the terminal version of OpenCode, see [[AI on Demand: Configure OpenCode Terminal]]&lt;br /&gt;
&lt;br /&gt;
The following steps describe how to create a basic OpenCode setup using models provided by stepping stone AG, and some good first steps to control and extend the agents capabilities.&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Remember that agents such as OpenCode can autonomously perform actions on the system they run, such as reading / editing files, making web requests, executing terminal commands, etc. Agents may also interpret untrusted inputs such as skills or AGENTS.md files as instructions. Consider carefully which actions an agent should be allowed to execute, and whether a container or VM solution may be appropriate to prevent your agent from accessing sensitive information.}}&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A valid [https://www.stepping-stone.ch/en/products/artificial-intelligence AI on Demand] API key.&lt;br /&gt;
* Network access to &amp;lt;code&amp;gt;https://llm.stoney-cloud.com/v1&amp;lt;/code&amp;gt;&lt;br /&gt;
* The ID of the AI models you wish to use with OpenCode (e.g. &lt;br /&gt;
* &#039;&#039;Optional:&#039;&#039; [https://nodejs.org Node.js] 20 or newer if you intend to install opencode via npm.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Download and install the [https://opencode.ai/v2/docs#desktop binary / package] appropriate for your system.&lt;br /&gt;
&lt;br /&gt;
Once complete, open the OpenCode desktop app to verify that the installation was successful&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200px&amp;gt;&lt;br /&gt;
OpenCode Desktop homepage.png|OpenCode Desktop&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure provider and models ==&lt;br /&gt;
&lt;br /&gt;
OpenCode desktop currently does not support adding custom model providers directly from its user interface. You will need to configure stepping stone AG as your provider by modifying your OpenCode configuration file to include the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;stepping-stone&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;stepping stone AG&amp;quot;,&lt;br /&gt;
      &amp;quot;package&amp;quot;: &amp;quot;@opencode/ai/providers/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {}&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Linux machines, the default location of your personal configuration file is &amp;lt;code&amp;gt;~/.config/opencode/opencode.jsonc&amp;lt;/code&amp;gt; or equivalent. See [https://opencode.ai/v2/docs/config/#locations https://opencode.ai/v2/docs/config/#locations] for more information on where to place the configuration file on your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When configuring stepping stone AG as your provider as above, OpenCode expects to find your API key in an environment variable called &amp;lt;code&amp;gt;STONEY_KEY&amp;lt;/code&amp;gt;. Alternatively you may add your key directly to the configuration file by removing the &amp;lt;code&amp;gt;&amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&amp;lt;/code&amp;gt; line, and adding your key as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;,&lt;br /&gt;
        &amp;quot;apiKey&amp;quot;: &amp;quot;YOUR API KEY GOES HERE&amp;quot;,&lt;br /&gt;
      },&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Your API key must be kept secret by you! Be careful where you store your key to prevent it from being stolen or abused by a third party.}}&lt;br /&gt;
&lt;br /&gt;
Next, you should configure at least one model you wish to use with OpenCode. The following is a configuration for the &amp;lt;code&amp;gt;GLM-5.3-Flash&amp;lt;/code&amp;gt; model provided by stepping stone AG:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;zai-org/GLM-5.3-Flash&amp;quot;: {&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;GLM 5.3 Flash&amp;quot;,&lt;br /&gt;
          &amp;quot;limit&amp;quot;: {&lt;br /&gt;
            &amp;quot;context&amp;quot;: 262144,&lt;br /&gt;
          },&lt;br /&gt;
          &amp;quot;cost&amp;quot;: {&lt;br /&gt;
            &amp;quot;input&amp;quot;: 0.3,&lt;br /&gt;
            &amp;quot;output&amp;quot;: 1.5,&lt;br /&gt;
            &amp;quot;cache&amp;quot;: {&lt;br /&gt;
              &amp;quot;read&amp;quot;: 0.045,&lt;br /&gt;
            },&lt;br /&gt;
          },&lt;br /&gt;
        },&lt;br /&gt;
      }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;zai-org/GLM-5.3-Flash&amp;lt;/code&amp;gt; with the ID of the particular model you wish to use, and refer to [https://www.stepping-stone.ch/en/products/artificial-intelligence https://www.stepping-stone.ch/en/products/artificial-intelligence] for pricing and context window limits. Additional model specific configuration can be added as needed. See [https://opencode.ai/v2/docs/models/ https://opencode.ai/v2/docs/models/] for further information on configuring models.&lt;br /&gt;
&lt;br /&gt;
To check if your configuration is correct, restart OpenCode after changing the configuration file. If the configuration is correct, stepping stone AG should appear as a configured provider, and your selected model in the available models list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Home_button.png|1. Open home page&lt;br /&gt;
OpenCode_settings_menu.png|2. Open settings menu&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Provider.png|3. Check that stepping stone AG appears as a provider&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model.png|4. Check that your selected model appears at the bottom of the list&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, start a new session, select the model you have just configured and enter a first prompt to test that the model is working correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model_selected.png|1. Start a new session and select a stepping stone AG provided model&lt;br /&gt;
OpenCode_Desktop_First_Prompt.png|2. Enter a first prompt to check that the configuration works&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure appearance and notifications ==&lt;br /&gt;
&lt;br /&gt;
You may customise the appearance and layout of the UI, notification settings, shortcuts and more via the settings menu.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_settings.png|Available settings submenus&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
OpenCode provides a built in sandbox to limit what actions an agent is allowed to perform. You can configure permissions via the configuration file (there is currently no option to configure permissions via the user interface). Permissions are defined as a list of rules. For each action (e.g. read/write a file, execute a shell command, etc.), you may define a set of rules, each with a pattern determining when the rule applies, and an effect to determine if the action is allowed, denied or requires explicit approval by the user. The following shows some examples of permission rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;permissions&amp;quot;: [&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;ask&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git status *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git push *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;deny&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;skill&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;read&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*.html&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Try to keep the permissions you define as restrictive as feasable. In particular, do not allow your agent to perform sensitive or dangerous actions without your explicit approval.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=While OpenCode provides a sandbox controlled via permissions, you should never rely exclusively on the sandbox to ensure that your agent does not perform dangerous actions or accesses sensitive data. Always exercise good judgement when deciding what your agent should be allowed to do.}}&lt;br /&gt;
&lt;br /&gt;
== Further steps ==&lt;br /&gt;
&lt;br /&gt;
You now have a basic OpenCode agent setup available to you. You may further customise and extend OpenCode in a variety of ways, such as by adding skills, configuring MCP servers or OpenCode plugins.&lt;br /&gt;
&lt;br /&gt;
Check [https://opencode.ai/v2/docs/ https://opencode.ai/v2/docs/] or the settings menu of OpenCode to see how you can extend your agent to your needs.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [https://opencode.ai/v2/docs/ OpenCode documentation]&lt;br /&gt;
* [https://opencode.ai/v2/docs/providers OpenCode providers guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/config OpenCode configuration reference] and [https://opencode.ai/config.json configuration schema]&lt;br /&gt;
* [https://opencode.ai/v2/docs/permissions OpenCode permissions guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/mcp-servers OpenCode MCP servers guide]&lt;br /&gt;
* [https://modelcontextprotocol.io Model Context Protocol specification]&lt;br /&gt;
* [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG – Artificial Intelligence]&lt;br /&gt;
* [[AI on Demand: Usage]]&lt;br /&gt;
&lt;br /&gt;
[[Category: AI on Demand]]&lt;br /&gt;
[[Category: OpenCode]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1293</id>
		<title>AI on demand: Configuring OpenCode Desktop</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1293"/>
		<updated>2026-11-03T14:45:03Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This guide walks through configuring the desktop variant of OpenCode. If you are looking for guidance on setting up the terminal version of OpenCode, see [[AI on Demand: Configure OpenCode Terminal]]&lt;br /&gt;
&lt;br /&gt;
The following steps describe how to create a basic OpenCode setup using models provided by stepping stone AG, and some good first steps to control and extend the agents capabilities.&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Remember that agents such as OpenCode can autonomously perform actions on the system they run, such as reading / editing files, making web requests, executing terminal commands, etc. Agents may also interpret untrusted inputs such as skills or AGENTS.md files as instructions. Consider carefully which actions an agent should be allowed to execute, and whether a container or VM solution may be appropriate to prevent your agent from accessing sensitive information.}}&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A valid [https://www.stepping-stone.ch/en/products/artificial-intelligence AI on Demand] API key.&lt;br /&gt;
* Network access to &amp;lt;code&amp;gt;https://llm.stoney-cloud.com/v1&amp;lt;/code&amp;gt;&lt;br /&gt;
* The ID of the AI models you wish to use with OpenCode (e.g. &lt;br /&gt;
* &#039;&#039;Optional:&#039;&#039; [https://nodejs.org Node.js] 20 or newer if you intend to install opencode via npm.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Download and install the [https://opencode.ai/v2/docs#desktop binary / package] appropriate for your system.&lt;br /&gt;
&lt;br /&gt;
Once complete, open the OpenCode desktop app to verify that the installation was successful&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200px&amp;gt;&lt;br /&gt;
OpenCode Desktop homepage.png|OpenCode Desktop&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure provider and models ==&lt;br /&gt;
&lt;br /&gt;
OpenCode desktop currently does not support adding custom model providers directly from its user interface. You will need to configure stepping stone AG as your provider by modifying your OpenCode configuration file to include the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;stepping-stone&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;stepping stone AG&amp;quot;,&lt;br /&gt;
      &amp;quot;package&amp;quot;: &amp;quot;@opencode/ai/providers/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {}&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Linux machines, the default location of your personal configuration file is &amp;lt;code&amp;gt;~/.config/opencode/opencode.jsonc&amp;lt;/code&amp;gt; or equivalent. See [https://opencode.ai/v2/docs/config/#locations https://opencode.ai/v2/docs/config/#locations] for more information on where to place the configuration file on your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When configuring stepping stone AG as your provider as above, OpenCode expects to find your API key in an environment variable called &amp;lt;code&amp;gt;STONEY_KEY&amp;lt;/code&amp;gt;. Alternatively you may add your key directly to the configuration file by removing the &amp;lt;code&amp;gt;&amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&amp;lt;/code&amp;gt; line, and adding your key as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;,&lt;br /&gt;
        &amp;quot;apiKey&amp;quot;: &amp;quot;YOUR API KEY GOES HERE&amp;quot;,&lt;br /&gt;
      },&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Your API key must be kept secret by you! Be careful where you store your key to prevent it from being stolen or abused by a third party.}}&lt;br /&gt;
&lt;br /&gt;
Next, you should configure at least one model you wish to use with OpenCode. The following is a configuration for the &amp;lt;code&amp;gt;GLM-5.3-Flash&amp;lt;/code&amp;gt; model provided by stepping stone AG:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;zai-org/GLM-5.3-Flash&amp;quot;: {&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;GLM 5.3 Flash&amp;quot;,&lt;br /&gt;
          &amp;quot;limit&amp;quot;: {&lt;br /&gt;
            &amp;quot;context&amp;quot;: 262144,&lt;br /&gt;
          },&lt;br /&gt;
          &amp;quot;cost&amp;quot;: {&lt;br /&gt;
            &amp;quot;input&amp;quot;: 0.3,&lt;br /&gt;
            &amp;quot;output&amp;quot;: 1.5,&lt;br /&gt;
            &amp;quot;cache&amp;quot;: {&lt;br /&gt;
              &amp;quot;read&amp;quot;: 0.045,&lt;br /&gt;
            },&lt;br /&gt;
          },&lt;br /&gt;
        },&lt;br /&gt;
      }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;zai-org/GLM-5.3-Flash&amp;lt;/code&amp;gt; with the ID of the particular model you wish to use, and refer to [https://www.stepping-stone.ch/en/products/artificial-intelligence https://www.stepping-stone.ch/en/products/artificial-intelligence] for pricing and context window limits. Additional model specific configuration can be added as needed. See [https://opencode.ai/v2/docs/models/ https://opencode.ai/v2/docs/models/] for further information on configuring models.&lt;br /&gt;
&lt;br /&gt;
To check if your configuration is correct, restart OpenCode after changing the configuration file. If the configuration is correct, stepping stone AG should appear as a configured provider, and your selected model in the available models list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Home_button.png|1. Open home page&lt;br /&gt;
OpenCode_settings_menu.png|2. Open settings menu&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Provider.png|3. Check that stepping stone AG appears as a provider&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model.png|4. Check that your selected model appears at the bottom of the list&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, start a new session, select the model you have just configured and enter a first prompt to test that the model is working correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model_selected.png|1. Start a new session and select a stepping stone AG provided model&lt;br /&gt;
OpenCode_Desktop_First_Prompt.png|2. Enter a first prompt to check that the configuration works&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure appearance and notifications ==&lt;br /&gt;
&lt;br /&gt;
You may customise the appearance and layout of the UI, notification settings, shortcuts and more via the settings menu.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_settings.png|Available settings submenus&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
OpenCode provides a built in sandbox to limit what actions an agent is allowed to perform. You can configure permissions via the configuration file (there is currently no option to configure permissions via the user interface). Permissions are defined as a list of rules. For each action (e.g. read/write a file, execute a shell command, etc.), you may define a set of rules, each with a pattern determining when the rule applies, and an effect to determine if the action is allowed, denied or requires explicit approval by the user. The following shows some examples of permission rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;permissions&amp;quot;: [&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;ask&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git status *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git push *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;deny&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;skill&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;read&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*.html&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Try to keep the permissions you define as restrictive as feasable. In particular, do not allow your agent to perform sensitive or dangerous actions without your explicit approval.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=While OpenCode provides a sandbox controlled via permissions, you should never rely exclusively on the sandbox to ensure that your agent does not perform dangerous actions or accesses sensitive data. Always exercise good judgement when deciding what your agent should be allowed to do.}}&lt;br /&gt;
&lt;br /&gt;
== Further steps ==&lt;br /&gt;
&lt;br /&gt;
You now have a basic OpenCode agent setup available to you. You may further customise and extend OpenCode in a variety of ways, such as by adding skills, configuring MCP servers or OpenCode plugins.&lt;br /&gt;
&lt;br /&gt;
Check [https://opencode.ai/v2/docs/ https://opencode.ai/v2/docs/] or the settings menu of OpenCode to see how you can extend your agent to your needs.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [https://opencode.ai/v2/docs/ OpenCode documentation]&lt;br /&gt;
* [https://opencode.ai/v2/docs/providers OpenCode providers guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/config OpenCode configuration reference] and [https://opencode.ai/config.json configuration schema]&lt;br /&gt;
* [https://opencode.ai/v2/docs/permissions OpenCode permissions guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/mcp-servers OpenCode MCP servers guide]&lt;br /&gt;
* [https://modelcontextprotocol.io Model Context Protocol specification]&lt;br /&gt;
* [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG – Artificial Intelligence]&lt;br /&gt;
* [[AI on Demand: Usage]]&lt;br /&gt;
&lt;br /&gt;
[[Category: AI on Demand]]&lt;br /&gt;
[[Category: OpenCode]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=Category:OpenCode&amp;diff=1292</id>
		<title>Category:OpenCode</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=Category:OpenCode&amp;diff=1292"/>
		<updated>2026-11-03T14:44:39Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Created page with &amp;quot;Category: AI on Demand&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: AI on Demand]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_Demand:_Configuring_OpenCode&amp;diff=1291</id>
		<title>AI on Demand: Configuring OpenCode</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_Demand:_Configuring_OpenCode&amp;diff=1291"/>
		<updated>2026-11-03T14:43:52Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Sst-pde moved page AI on Demand: Configuring OpenCode to AI on Demand: Configuring OpenCode Desktop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[AI on Demand: Configuring OpenCode Desktop]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1290</id>
		<title>AI on demand: Configuring OpenCode Desktop</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1290"/>
		<updated>2026-11-03T14:43:52Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Sst-pde moved page AI on Demand: Configuring OpenCode to AI on Demand: Configuring OpenCode Desktop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This guide walks through configuring the desktop variant of OpenCode. If you are looking for guidance on setting up the terminal version of OpenCode, see [[AI on Demand: Configure OpenCode Terminal]]&lt;br /&gt;
&lt;br /&gt;
The following steps describe how to create a basic OpenCode setup using models provided by stepping stone AG, and some good first steps to control and extend the agents capabilities.&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Remember that agents such as OpenCode can autonomously perform actions on the system they run, such as reading / editing files, making web requests, executing terminal commands, etc. Agents may also interpret untrusted inputs such as skills or AGENTS.md files as instructions. Consider carefully which actions an agent should be allowed to execute, and whether a container or VM solution may be appropriate to prevent your agent from accessing sensitive information.}}&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A valid [https://www.stepping-stone.ch/en/products/artificial-intelligence AI on Demand] API key.&lt;br /&gt;
* Network access to &amp;lt;code&amp;gt;https://llm.stoney-cloud.com/v1&amp;lt;/code&amp;gt;&lt;br /&gt;
* The ID of the AI models you wish to use with OpenCode (e.g. &lt;br /&gt;
* &#039;&#039;Optional:&#039;&#039; [https://nodejs.org Node.js] 20 or newer if you intend to install opencode via npm.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Download and install the [https://opencode.ai/v2/docs#desktop binary / package] appropriate for your system.&lt;br /&gt;
&lt;br /&gt;
Once complete, open the OpenCode desktop app to verify that the installation was successful&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200px&amp;gt;&lt;br /&gt;
OpenCode Desktop homepage.png|OpenCode Desktop&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure provider and models ==&lt;br /&gt;
&lt;br /&gt;
OpenCode desktop currently does not support adding custom model providers directly from its user interface. You will need to configure stepping stone AG as your provider by modifying your OpenCode configuration file to include the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;stepping-stone&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;stepping stone AG&amp;quot;,&lt;br /&gt;
      &amp;quot;package&amp;quot;: &amp;quot;@opencode/ai/providers/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {}&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Linux machines, the default location of your personal configuration file is &amp;lt;code&amp;gt;~/.config/opencode/opencode.jsonc&amp;lt;/code&amp;gt; or equivalent. See [https://opencode.ai/v2/docs/config/#locations https://opencode.ai/v2/docs/config/#locations] for more information on where to place the configuration file on your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When configuring stepping stone AG as your provider as above, OpenCode expects to find your API key in an environment variable called &amp;lt;code&amp;gt;STONEY_KEY&amp;lt;/code&amp;gt;. Alternatively you may add your key directly to the configuration file by removing the &amp;lt;code&amp;gt;&amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&amp;lt;/code&amp;gt; line, and adding your key as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;,&lt;br /&gt;
        &amp;quot;apiKey&amp;quot;: &amp;quot;YOUR API KEY GOES HERE&amp;quot;,&lt;br /&gt;
      },&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Your API key must be kept secret by you! Be careful where you store your key to prevent it from being stolen or abused by a third party.}}&lt;br /&gt;
&lt;br /&gt;
Next, you should configure at least one model you wish to use with OpenCode. The following is a configuration for the &amp;lt;code&amp;gt;GLM-5.3-Flash&amp;lt;/code&amp;gt; model provided by stepping stone AG:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;zai-org/GLM-5.3-Flash&amp;quot;: {&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;GLM 5.3 Flash&amp;quot;,&lt;br /&gt;
          &amp;quot;limit&amp;quot;: {&lt;br /&gt;
            &amp;quot;context&amp;quot;: 262144,&lt;br /&gt;
          },&lt;br /&gt;
          &amp;quot;cost&amp;quot;: {&lt;br /&gt;
            &amp;quot;input&amp;quot;: 0.3,&lt;br /&gt;
            &amp;quot;output&amp;quot;: 1.5,&lt;br /&gt;
            &amp;quot;cache&amp;quot;: {&lt;br /&gt;
              &amp;quot;read&amp;quot;: 0.045,&lt;br /&gt;
            },&lt;br /&gt;
          },&lt;br /&gt;
        },&lt;br /&gt;
      }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;zai-org/GLM-5.3-Flash&amp;lt;/code&amp;gt; with the ID of the particular model you wish to use, and refer to [https://www.stepping-stone.ch/en/products/artificial-intelligence https://www.stepping-stone.ch/en/products/artificial-intelligence] for pricing and context window limits. Additional model specific configuration can be added as needed. See [https://opencode.ai/v2/docs/models/ https://opencode.ai/v2/docs/models/] for further information on configuring models.&lt;br /&gt;
&lt;br /&gt;
To check if your configuration is correct, restart OpenCode after changing the configuration file. If the configuration is correct, stepping stone AG should appear as a configured provider, and your selected model in the available models list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Home_button.png|1. Open home page&lt;br /&gt;
OpenCode_settings_menu.png|2. Open settings menu&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Provider.png|3. Check that stepping stone AG appears as a provider&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model.png|4. Check that your selected model appears at the bottom of the list&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, start a new session, select the model you have just configured and enter a first prompt to test that the model is working correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model_selected.png|1. Start a new session and select a stepping stone AG provided model&lt;br /&gt;
OpenCode_Desktop_First_Prompt.png|2. Enter a first prompt to check that the configuration works&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure appearance and notifications ==&lt;br /&gt;
&lt;br /&gt;
You may customise the appearance and layout of the UI, notification settings, shortcuts and more via the settings menu.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_settings.png|Available settings submenus&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
OpenCode provides a built in sandbox to limit what actions an agent is allowed to perform. You can configure permissions via the configuration file (there is currently no option to configure permissions via the user interface). Permissions are defined as a list of rules. For each action (e.g. read/write a file, execute a shell command, etc.), you may define a set of rules, each with a pattern determining when the rule applies, and an effect to determine if the action is allowed, denied or requires explicit approval by the user. The following shows some examples of permission rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;permissions&amp;quot;: [&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;ask&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git status *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git push *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;deny&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;skill&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;read&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*.html&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Try to keep the permissions you define as restrictive as feasable. In particular, do not allow your agent to perform sensitive or dangerous actions without your explicit approval.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=While OpenCode provides a sandbox controlled via permissions, you should never rely exclusively on the sandbox to ensure that your agent does not perform dangerous actions or accesses sensitive data. Always exercise good judgement when deciding what your agent should be allowed to do.}}&lt;br /&gt;
&lt;br /&gt;
== Further steps ==&lt;br /&gt;
&lt;br /&gt;
You now have a basic OpenCode agent setup available to you. You may further customise and extend OpenCode in a variety of ways, such as by adding skills, configuring MCP servers or OpenCode plugins.&lt;br /&gt;
&lt;br /&gt;
Check [https://opencode.ai/v2/docs/ https://opencode.ai/v2/docs/] or the settings menu of OpenCode to see how you can extend your agent to your needs.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [https://opencode.ai/v2/docs/ OpenCode documentation]&lt;br /&gt;
* [https://opencode.ai/v2/docs/providers OpenCode providers guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/config OpenCode configuration reference] and [https://opencode.ai/config.json configuration schema]&lt;br /&gt;
* [https://opencode.ai/v2/docs/permissions OpenCode permissions guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/mcp-servers OpenCode MCP servers guide]&lt;br /&gt;
* [https://modelcontextprotocol.io Model Context Protocol specification]&lt;br /&gt;
* [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG – Artificial Intelligence]&lt;br /&gt;
* [[AI on Demand: Usage]]&lt;br /&gt;
&lt;br /&gt;
[[Category: AI on Demand]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1289</id>
		<title>AI on demand: Configuring OpenCode Desktop</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=AI_on_demand:_Configuring_OpenCode_Desktop&amp;diff=1289"/>
		<updated>2026-11-03T14:43:44Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Created page with &amp;quot;== Overview ==  [https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.  &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; This guide walks through confi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
[https://opencode.ai OpenCode] is an open-source AI coding agent, available as a desktop application, in the browser or via the terminal. It supports tool calls, MCP servers, skills, plugins, etc. for software development workflows. OpenCode can be configured to exclusively use AI models hosted by [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG] via its OpenAI-compatible API.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This guide walks through configuring the desktop variant of OpenCode. If you are looking for guidance on setting up the terminal version of OpenCode, see [[AI on Demand: Configure OpenCode Terminal]]&lt;br /&gt;
&lt;br /&gt;
The following steps describe how to create a basic OpenCode setup using models provided by stepping stone AG, and some good first steps to control and extend the agents capabilities.&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Remember that agents such as OpenCode can autonomously perform actions on the system they run, such as reading / editing files, making web requests, executing terminal commands, etc. Agents may also interpret untrusted inputs such as skills or AGENTS.md files as instructions. Consider carefully which actions an agent should be allowed to execute, and whether a container or VM solution may be appropriate to prevent your agent from accessing sensitive information.}}&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* A valid [https://www.stepping-stone.ch/en/products/artificial-intelligence AI on Demand] API key.&lt;br /&gt;
* Network access to &amp;lt;code&amp;gt;https://llm.stoney-cloud.com/v1&amp;lt;/code&amp;gt;&lt;br /&gt;
* The ID of the AI models you wish to use with OpenCode (e.g. &lt;br /&gt;
* &#039;&#039;Optional:&#039;&#039; [https://nodejs.org Node.js] 20 or newer if you intend to install opencode via npm.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Download and install the [https://opencode.ai/v2/docs#desktop binary / package] appropriate for your system.&lt;br /&gt;
&lt;br /&gt;
Once complete, open the OpenCode desktop app to verify that the installation was successful&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200px&amp;gt;&lt;br /&gt;
OpenCode Desktop homepage.png|OpenCode Desktop&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure provider and models ==&lt;br /&gt;
&lt;br /&gt;
OpenCode desktop currently does not support adding custom model providers directly from its user interface. You will need to configure stepping stone AG as your provider by modifying your OpenCode configuration file to include the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;$schema&amp;quot;: &amp;quot;https://opencode.ai/config.json&amp;quot;,&lt;br /&gt;
  &amp;quot;providers&amp;quot;: {&lt;br /&gt;
    &amp;quot;stepping-stone&amp;quot;: {&lt;br /&gt;
      &amp;quot;name&amp;quot;: &amp;quot;stepping stone AG&amp;quot;,&lt;br /&gt;
      &amp;quot;package&amp;quot;: &amp;quot;@opencode/ai/providers/openai-compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;models&amp;quot;: {}&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Linux machines, the default location of your personal configuration file is &amp;lt;code&amp;gt;~/.config/opencode/opencode.jsonc&amp;lt;/code&amp;gt; or equivalent. See [https://opencode.ai/v2/docs/config/#locations https://opencode.ai/v2/docs/config/#locations] for more information on where to place the configuration file on your system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; When configuring stepping stone AG as your provider as above, OpenCode expects to find your API key in an environment variable called &amp;lt;code&amp;gt;STONEY_KEY&amp;lt;/code&amp;gt;. Alternatively you may add your key directly to the configuration file by removing the &amp;lt;code&amp;gt;&amp;quot;env&amp;quot;: [&amp;quot;STONEY_KEY&amp;quot;],&amp;lt;/code&amp;gt; line, and adding your key as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;settings&amp;quot;: {&lt;br /&gt;
        &amp;quot;baseURL&amp;quot;: &amp;quot;https://llm.stoney-cloud.com/v1&amp;quot;,&lt;br /&gt;
        &amp;quot;apiKey&amp;quot;: &amp;quot;YOUR API KEY GOES HERE&amp;quot;,&lt;br /&gt;
      },&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Your API key must be kept secret by you! Be careful where you store your key to prevent it from being stolen or abused by a third party.}}&lt;br /&gt;
&lt;br /&gt;
Next, you should configure at least one model you wish to use with OpenCode. The following is a configuration for the &amp;lt;code&amp;gt;GLM-5.3-Flash&amp;lt;/code&amp;gt; model provided by stepping stone AG:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
      &amp;quot;models&amp;quot;: {&lt;br /&gt;
        &amp;quot;zai-org/GLM-5.3-Flash&amp;quot;: {&lt;br /&gt;
          &amp;quot;name&amp;quot;: &amp;quot;GLM 5.3 Flash&amp;quot;,&lt;br /&gt;
          &amp;quot;limit&amp;quot;: {&lt;br /&gt;
            &amp;quot;context&amp;quot;: 262144,&lt;br /&gt;
          },&lt;br /&gt;
          &amp;quot;cost&amp;quot;: {&lt;br /&gt;
            &amp;quot;input&amp;quot;: 0.3,&lt;br /&gt;
            &amp;quot;output&amp;quot;: 1.5,&lt;br /&gt;
            &amp;quot;cache&amp;quot;: {&lt;br /&gt;
              &amp;quot;read&amp;quot;: 0.045,&lt;br /&gt;
            },&lt;br /&gt;
          },&lt;br /&gt;
        },&lt;br /&gt;
      }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;zai-org/GLM-5.3-Flash&amp;lt;/code&amp;gt; with the ID of the particular model you wish to use, and refer to [https://www.stepping-stone.ch/en/products/artificial-intelligence https://www.stepping-stone.ch/en/products/artificial-intelligence] for pricing and context window limits. Additional model specific configuration can be added as needed. See [https://opencode.ai/v2/docs/models/ https://opencode.ai/v2/docs/models/] for further information on configuring models.&lt;br /&gt;
&lt;br /&gt;
To check if your configuration is correct, restart OpenCode after changing the configuration file. If the configuration is correct, stepping stone AG should appear as a configured provider, and your selected model in the available models list.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Home_button.png|1. Open home page&lt;br /&gt;
OpenCode_settings_menu.png|2. Open settings menu&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Provider.png|3. Check that stepping stone AG appears as a provider&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model.png|4. Check that your selected model appears at the bottom of the list&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, start a new session, select the model you have just configured and enter a first prompt to test that the model is working correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_Stepping_Stone_Model_selected.png|1. Start a new session and select a stepping stone AG provided model&lt;br /&gt;
OpenCode_Desktop_First_Prompt.png|2. Enter a first prompt to check that the configuration works&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configure appearance and notifications ==&lt;br /&gt;
&lt;br /&gt;
You may customise the appearance and layout of the UI, notification settings, shortcuts and more via the settings menu.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=packed heights=200&amp;gt;&lt;br /&gt;
OpenCode_Desktop_settings.png|Available settings submenus&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
OpenCode provides a built in sandbox to limit what actions an agent is allowed to perform. You can configure permissions via the configuration file (there is currently no option to configure permissions via the user interface). Permissions are defined as a list of rules. For each action (e.g. read/write a file, execute a shell command, etc.), you may define a set of rules, each with a pattern determining when the rule applies, and an effect to determine if the action is allowed, denied or requires explicit approval by the user. The following shows some examples of permission rules:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
  &amp;quot;permissions&amp;quot;: [&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;ask&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git status *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;shell&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;git push *&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;deny&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;skill&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;read&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
    { &amp;quot;action&amp;quot;: &amp;quot;edit&amp;quot;, &amp;quot;resource&amp;quot;: &amp;quot;*.html&amp;quot;, &amp;quot;effect&amp;quot;: &amp;quot;allow&amp;quot; },&lt;br /&gt;
  ]&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=Try to keep the permissions you define as restrictive as feasable. In particular, do not allow your agent to perform sensitive or dangerous actions without your explicit approval.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|title=⚠️ Warning|content=While OpenCode provides a sandbox controlled via permissions, you should never rely exclusively on the sandbox to ensure that your agent does not perform dangerous actions or accesses sensitive data. Always exercise good judgement when deciding what your agent should be allowed to do.}}&lt;br /&gt;
&lt;br /&gt;
== Further steps ==&lt;br /&gt;
&lt;br /&gt;
You now have a basic OpenCode agent setup available to you. You may further customise and extend OpenCode in a variety of ways, such as by adding skills, configuring MCP servers or OpenCode plugins.&lt;br /&gt;
&lt;br /&gt;
Check [https://opencode.ai/v2/docs/ https://opencode.ai/v2/docs/] or the settings menu of OpenCode to see how you can extend your agent to your needs.&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&lt;br /&gt;
* [https://opencode.ai/v2/docs/ OpenCode documentation]&lt;br /&gt;
* [https://opencode.ai/v2/docs/providers OpenCode providers guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/config OpenCode configuration reference] and [https://opencode.ai/config.json configuration schema]&lt;br /&gt;
* [https://opencode.ai/v2/docs/permissions OpenCode permissions guide]&lt;br /&gt;
* [https://opencode.ai/v2/docs/mcp-servers OpenCode MCP servers guide]&lt;br /&gt;
* [https://modelcontextprotocol.io Model Context Protocol specification]&lt;br /&gt;
* [https://www.stepping-stone.ch/en/products/artificial-intelligence stepping stone AG – Artificial Intelligence]&lt;br /&gt;
* [[AI on Demand: Usage]]&lt;br /&gt;
&lt;br /&gt;
[[Category: AI on Demand]]&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_settings.png&amp;diff=1288</id>
		<title>File:OpenCode Desktop settings.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_settings.png&amp;diff=1288"/>
		<updated>2026-11-03T14:22:26Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_First_Prompt.png&amp;diff=1287</id>
		<title>File:OpenCode Desktop First Prompt.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_First_Prompt.png&amp;diff=1287"/>
		<updated>2026-11-03T14:19:37Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_Stepping_Stone_Model_selected.png&amp;diff=1286</id>
		<title>File:OpenCode Desktop Stepping Stone Model selected.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_Stepping_Stone_Model_selected.png&amp;diff=1286"/>
		<updated>2026-11-03T14:17:52Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_Stepping_Stone_Model.png&amp;diff=1285</id>
		<title>File:OpenCode Desktop Stepping Stone Model.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_Stepping_Stone_Model.png&amp;diff=1285"/>
		<updated>2026-11-03T14:11:09Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_Stepping_Stone_Provider.png&amp;diff=1284</id>
		<title>File:OpenCode Desktop Stepping Stone Provider.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_Stepping_Stone_Provider.png&amp;diff=1284"/>
		<updated>2026-11-03T14:10:16Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_settings_menu.png&amp;diff=1283</id>
		<title>File:OpenCode settings menu.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_settings_menu.png&amp;diff=1283"/>
		<updated>2026-11-03T12:04:17Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Sst-pde uploaded a new version of File:OpenCode settings menu.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenCode settings menu location highlighted&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Home_button.png&amp;diff=1282</id>
		<title>File:OpenCode Home button.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Home_button.png&amp;diff=1282"/>
		<updated>2026-11-03T12:03:03Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: Sst-pde uploaded a new version of File:OpenCode Home button.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenCode Home button location highlighted&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_custom_provider.png&amp;diff=1281</id>
		<title>File:OpenCode custom provider.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_custom_provider.png&amp;diff=1281"/>
		<updated>2026-11-03T10:42:29Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenCode custom provider location highlighted&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_settings_menu.png&amp;diff=1280</id>
		<title>File:OpenCode settings menu.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_settings_menu.png&amp;diff=1280"/>
		<updated>2026-11-03T10:41:42Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenCode settings menu location highlighted&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Home_button.png&amp;diff=1279</id>
		<title>File:OpenCode Home button.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Home_button.png&amp;diff=1279"/>
		<updated>2026-11-03T10:34:56Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenCode Home button location highlighted&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI.png&amp;diff=1278</id>
		<title>File:OpenCode TUI.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_TUI.png&amp;diff=1278"/>
		<updated>2026-11-03T10:22:39Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenCode TUI adter startup&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
	<entry>
		<id>https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_homepage.png&amp;diff=1277</id>
		<title>File:OpenCode Desktop homepage.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.stoney-cloud.com/w/index.php?title=File:OpenCode_Desktop_homepage.png&amp;diff=1277"/>
		<updated>2026-11-03T10:13:29Z</updated>

		<summary type="html">&lt;p&gt;Sst-pde: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenCode Desktop window after startup&lt;/div&gt;</summary>
		<author><name>Sst-pde</name></author>
	</entry>
</feed>