pinecallDocs
Get started / On your machine

On your machine

The whole runtime on one computer with one command: pinecall-runtime setup.

The whole runtime on one computer, with one command, and an agent talking to it with two more. No account is needed, and on a machine with an NVIDIA card or Apple silicon no vendor is paid either: the models run on your machine too. Every secret is drawn on the machine and stays there. This is how you develop an agent against a runtime of your own, or try Pinecall without signing up.

What you get#

pinecall-runtime setup brings up everything a call needs and keeps it on your machine:

what what it does where
Postgres 17, with pgvector and pg_textsearch every call's log, the orgs, the keys, the knowledge bases Docker, 127.0.0.1:55433
Redis how the parts of the runtime tell each other what just happened Docker, 127.0.0.1:56380
LiveKit, in development mode the audio of a call, and a browser's way in Docker, ws://127.0.0.1:7880
Ollama, Whisper on Speaches, Kokoro the model, the ears and the voice: open models, pulled once Docker, 127.0.0.1:11434, :8000, :8880
the gateway, with the console every route the CLI and the console use, for the sandbox and production your machine, http://127.0.0.1:8080 (on Linux it listens on every interface: see More people)
a worker runs the calls of the sandbox, four at a time your machine

There is no worker for production here. A written call (pinecall chat) runs in the gateway, in either environment. A spoken call in production finds no worker to take it and is never answered: talk to your agent in the sandbox on this machine, and serve production calls from a server.

setup makes the org default, you as its admin with a password for the console, and signs this machine in to it — in ~/.pinecall/session.json, the file pinecall login writes, readable by you alone — so the pinecall CLI here needs no login: what pinecall start holds is what your console shows. It is this machine's runtime, for the person at it: a runtime that several people reach from their own machines runs on your server.

Building an agent does not need any of this. Pinecall Cloud runs the runtime for you: start with the Quickstart. Come back here when you want the runtime on your own hardware, or want to read how it works from the inside.

Before you start#

  • Docker. Docker Desktop on macOS or Windows, Docker Engine with the compose plugin on Linux. On a Mac, colima serves as well (colima start --cpu 4 --memory 6): the services run in its machine and the gateway and the worker on the Mac. docker compose version tells you it is there. On Linux your own user must reach its daemon: docker info answers without sudo once you are in the docker group (sudo usermod -aG docker $USER, then sign in again). setup refuses before it asks you anything when it cannot.
  • uv, which installs Python 3.13 and the runtime with one command: docs.astral.sh/uv.
  • Node 24 or later, for the pinecall CLI your agent is run with. Where Node is the system's own (a Linux package), npm i -g writes under /usr and wants sudo.
  • With an NVIDIA card: its driver, and NVIDIA's container toolkit so Docker can hand the card to a container. docker run --rm --gpus all ubuntu nvidia-smi shows the card when both are in place; setup then says served here on the GPU.
  • About 12 GB of disk for the models (Gemma 4 alone is 7.6 GB, Whisper 1.6 GB) and their images, and a machine with 16 GB of memory. A machine with neither an NVIDIA card nor Apple silicon serves no model: it runs every call on vendors' keys instead (--models local is taken as asked there, and the model answers too slowly to hold a call). On a Mac, an Ollama of your own running already is used instead of the container: it runs the model on the Mac's GPU, which Docker cannot.

Run it#

Install the runtime#

Terminal
uv tool install --python 3.13 "pinecall-runtime[voice]"
pinecall-runtime --version
0.11.11

[voice] brings every speech vendor's plugin, which the worker needs to run a call. The runtime needs Python 3.13 or later: --python 3.13 has uv fetch one when the machine has none or an older one (Ubuntu 24.04 ships 3.12, and without the flag uv would install an old release that still took 3.12), which is why it is the command here and not pip install.

Set it up#

Terminal
pinecall-runtime setup
  Pinecall runtime · on this machine

  keys      anthropic — found in ~/.zshrc, lent to your orgs
  models    gemma4:12b · whisper · kokoro — open, served here

  Who signs in to the console?
  email     you@example.com
  password  ••••••••
  again     ••••••••

  starting  the first run downloads the services and the models: some minutes
  services  Postgres · Redis · LiveKit — this machine only

  ✓ ready   http://127.0.0.1:8080/sandbox/
  ✓ this machine is signed in — no `pinecall login` needed

  Next, in another terminal:
    npm i -g pinecall
    pinecall new acme --agent front-desk && cd acme && npm install
    pinecall start       # the agent, held here: leave it running
    pinecall chat        # in a third terminal: talk to it

Running. Ctrl-C stops it; `pinecall-runtime setup` starts it again.
gateway | INFO ...
worker  | INFO ...

It asks you nothing about models: what a call runs on is each agent's to name. It loads the providers whose keys it finds — in the environment, or exported in ~/.zshrc, ~/.bashrc and the other shell files, even when this terminal has not loaded them — so an agent names any of them with nothing to add; no key's value is ever shown. And it serves the open models that fit the machine: the best measured one your memory holds beside the ears and the voice, with Whisper and Kokoro. Those are the runtime's defaults, what an agent runs on when it names nothing.

Then it asks who signs in to the console, and the password, typed twice without echo — before anything slow, and never again on a later run — and runs. The first run is slow, and only the first: Docker builds the Postgres image, pulls Redis, LiveKit and the three model servers, and the models are pulled into their volumes, some minutes. The schema is created, the machine's secrets are drawn once into ~/.pinecall-runtime/local/env (readable by you alone), this machine is signed in, and the gateway and a worker start, their lines prefixed so you can tell them apart. Leave this terminal open: it is the runtime. Run setup again any time: every step already done is skipped, and a key added since is loaded.

On a machine like the one above Ollama thinks, Whisper hears, Kokoro speaks and bge-m3 embeds memory and knowledge, all through the runtime's openai plugin with a base_url per stage — the same stack a GPU server runs: on the card when Docker can reach one, in CPU images otherwise. On a machine that can serve none the defaults are vendors instead (DEEPGRAM_API_KEY, ANTHROPIC_API_KEY, CARTESIA_API_KEY), and a key of theirs found nowhere is asked for once, without echo. Before it asks, setup says how many it found nowhere and what each vendor does in a call; --chat-only asks for the one that thinks alone. An agent picks its own with pinecall agent set --llm groq, or a realtime model that hears and speaks itself with --realtime xai/grok-voice-3.0. pinecall team password <email> changes anyone's password from the CLI later, and pinecall-runtime orgs password is the operator's way to the same. --yes asks nothing, and a default's key found nowhere refuses; it makes up no password, so the console's person has none until orgs password sets one (pinecall console opens the console signed in meanwhile). The flags for a script (--llm, --models keys, --yes …) are pinecall-runtime setup --help-all; the runtime CLI has every one.

Talk to it#

In a second terminal, an agent of your own:

Terminal
npm i -g pinecall
pinecall new acme --agent front-desk && cd acme && npm install
pinecall whoami
pinecall start          # holds the agent: leave it running

And in a third terminal, in the same folder, pinecall chat: chat, test and simulate talk to the agent start holds, and start nothing themselves.

http://127.0.0.1:8080 · org default · sandbox
  key   k_4f2a1d9c66b30e17 · this machine (pinecall-runtime setup)
  from  your sign-in (~/.pinecall/session.json)
  opens the sandbox, and production with --prod: a person's key

whoami says where the key came from. new wrote pinecall.json at the project's root — this runtime and the org default — so every pinecall command in that folder (chat, test, start, simulate, the console) uses your machine. The console is http://127.0.0.1:8080/sandbox/, where you sign in with that email and password, or pinecall console opens it signed in. A Cloud project beside this one keeps running on Cloud: its own pinecall.json names Cloud.

Stop it, start it again#

Ctrl-C in the first terminal stops the gateway and the worker; the services and the model servers keep running in Docker, and pinecall-runtime setup (or pinecall-runtime local up) starts the two again in a second. To stop the services too:

Terminal
pinecall-runtime local down              # the database and the secrets are kept
pinecall-runtime local down --volumes    # the database deleted, to start from nothing

Another open model#

pinecall-runtime setup --recommend says which open models fit this machine and what each did when it was measured. pinecall-runtime setup --llm local/gemma4:e4b pulls another one into Ollama. The runtime's default stays the one its first run wrote, which the console's Box edits; an agent is pointed at the new model with pinecall agent set --llm openai/gemma4:e4b (the open models are reached through the openai plugin, so that is the vendor's name here). The first call on a model loads it on the card: a first agent set or simulate may answer did not answer … try again while it loads, and the second holds. Two open models on one card take turns loading, so keep an agent and its simulated caller on the same one.

Chat alone#

pinecall-runtime setup --chat-only is the lighter first run: Postgres, Redis, the gateway and the model servers, with no LiveKit and no worker. It still starts Whisper and Kokoro beside Ollama, so the providers row it writes names local ears and a local voice. A written call runs on the gateway, so pinecall chat and the written goldens of pinecall test work; a spoken call has no LiveKit and no worker to run on. Run setup again without the flag for voice.

More people#

This runtime is this machine's: Postgres, Redis and LiveKit listen on loopback and LiveKit is told it is at 127.0.0.1, so another machine cannot run a call on it.

On Linux the gateway listens on every interface (PINECALL_GATEWAY_LISTEN=0.0.0.0:8080 in ~/.pinecall-runtime/local/env), so LiveKit's container can reach it. Anyone on your network can then open the console and the API on port 8080: close that port in the machine's firewall. On macOS and Windows the gateway listens on 127.0.0.1 alone. A runtime that several people reach from their own machines, each with pinecall login, is the same verb at a name — on your server — and people, roles and keys from there on are Orgs, keys and the two environments. Colleagues on the same project each run their own: the project's pinecall.json names http://127.0.0.1:8080, which on their machine is their runtime.

A phone#

A phone call needs LiveKit's SIP bridge on the machine's own network, which Docker on macOS and Windows does not have, so a phone call to your machine works on Linux only:

Terminal
docker compose -f ~/.pinecall-runtime/local/compose.yaml --profile phone up -d sip

The carrier must reach your machine's port 5060 from the internet: a router that forwards it, or a virtual machine with a public address running the same command. On a Mac, the web and WhatsApp channels work; for the phone, a server does.

Developing the runtime itself#

From runtime/ in a checkout of pinecall/pinecall, make local brings the services up with the same verb and make local-gateway and make local-worker run the two processes from the sources, so a change is served the moment you save it.

Next steps#