Skip to Content
TissueLab Docs

AI Agent

Connect the agent to an LLM, and enable the Research panel.

The viewer, model nodes, classifiers and workflows work without an LLM. Only the agent (planning, chat, code generation) needs one. TissueLab Cloud comes with the agent ready to use.

LLM connection

Set in app/service/.env.local, or in the app's AI model preferences:

VariablePurpose
OPENAI_API_KEYEnables the agent. Any non-empty value works for servers that do not check keys.
OPENAI_BASE_URLAn OpenAI-compatible server (vLLM, Ollama, LM Studio, llama.cpp, LiteLLM…). Leave unset for OpenAI.
LLM_MODELModel name on that server

Example for a local model:

app/service/.env.local
OPENAI_API_KEY=local
OPENAI_BASE_URL=http://localhost:11434/v1
LLM_MODEL=qwen3:32b

Research panel

The Research panel runs model-written code in an isolated container, so it needs Docker. Everything else works without it.

brew install --cask docker-desktop
open -a Docker

On Linux, install Docker Engine.

Check that Docker is ready; the output must show both a Client and a Server section:

docker version
  • Restart TissueLab if Docker was installed while it was open.
  • The first run prepares its environment and can take several minutes.

On this page