Skip to main content

tuna and Ollama

Step 1. Download the client​

Instructions are available on the installation page.

Step 2. Run Ollama​

Installation instructions can be found in the official documentation.

Step 3. Run tuna​

Ollama uses port 11434 by default:

tuna http 11434 --request-header="host:localhost:11434"

Please note that the API will be accessible to everyone. If you need to restrict access, there are several ways:

An example of basic authentication protection might look like this:

tuna http 11434 --request-header="host:localhost:11434" --basic-auth="login:password"

All requests without correct credentials will receive a 401 error.