# Advanced configuration

Kyso runs on premise with its own domain, hosted on your company's own servers.

For that reason, the **Kyso CLI** can point to multiple instances of Kyso, and before starting to use the **Kyso CLI** you need to define to which instance you want to point.

## Linux and MacOS

### Using zsh terminal

Open a ZSH terminal and edit the file **\~/.zshrc** to add the following environment variable:

```
export KYSO_API=https://kyso.io/api/v1
```

Check that it's effectively added by executing:

```
cat ~/.zshrc
export PATH="/usr/local/opt/openjdk/bin:$PATH"
export KYSO_API=https://kyso.io/api/v1
```

Close your terminal and open it again (as your current instance of the terminal is not updated until you restart it), and then execute the following command to check that the result is the same:

```
echo $KYSO_API
https://kyso.io/api/v1
```

Now all the operations of **Kyso CLI** will point to the defined instance.

{% hint style="info" %}
Remember that you can change the value of KYSO\_API to your company's on premise instance of Kyso!
{% endhint %}

## Using bash terminal

Open a BASH terminal and edit the file **\~/.bashrc** to add the NEXT environment variable:

```
export KYSO_API=https://kyso.io/api/v1
```

Check that it's effectively added by executing:

```
cat ~/.bashrc
export PATH="/usr/local/opt/openjdk/bin:$PATH"
export KYSO_API=https://kyso.io/api/v1
```

Close your terminal and open it again (as your current instance of the terminal is not updated until you restart it), and then execute the following command to check that the result is the same:

```
echo $KYSO_API
https://kyso.io/api/v1
```

Now all the operations of **Kyso CLI** will point to the defined instance.

{% hint style="info" %}
Remember that you can change the value of KYSO\_API to your company's on premise instance of Kyso!
{% endhint %}

## Windows

In order to use and set environment variables in Windows, follow the next steps:

* Select Windows+R to open Run dialog
* Type **sysdm.cpl** and press OK to open a System Properties dialog

![Windows System Properties](https://4003540104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjzfPqQ1fXmC4OMXwiD%2Fuploads%2F5xb2gC3y1jIPLygvWVHE%2Fimage.png?alt=media\&token=51385cdf-3c1b-4cb3-9cf3-1a8d453cb2cd)

* Go to **Advanced > Environment Variables**

![Setting Windows Environment Variables](https://4003540104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjzfPqQ1fXmC4OMXwiD%2Fuploads%2FRx3YPRS9IGmCHUJ6NPG5%2Fimage.png?alt=media\&token=496f24a5-9e5d-4807-88df-f28381b142c2)

* Click the "New" button in System variables section, and fill in the text-boxes with the following contents:
  * Variable name: KYSO\_API
  * Variable value: <https://kyso.io/api/v1>

{% hint style="info" %}
Remember that you can change the value of KYSO\_API to your company's on premise instance of Kyso!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kyso.io/posting-to-kyso/kysos-command-line-tool/advanced-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
