pinecallDocs
Configuring / pinecall agent

pinecall agent

The agent's settings in the sandbox and in production, its versions and its knowledge.

pinecall agent [--agent <slug>] [--json]
pinecall agent list · stop <app>
pinecall agent set [--voice x] [--tts x] [--tts-model x] [--stt x] [--llm x] [--temperature n] [--language en|es|pt-BR…]
                   [--timezone America/Montevideo|Europe/Madrid…]
                   [--llm-builds Class] [--llm-option key=value …] [--stt-builds Class] [--stt-option key=value …]
                   [--realtime vendor/model] [--realtime-option key=value …]
                   [--tts-builds Class] [--tts-option key=value …]
                   [--judge x] [--judge-builds Class] [--judge-option key=value …]
                   [--greeting '…' | --greeting improvise[:'…']] [--greeting-interruptible on|off]
                   [--hangup '…' | --hangup any] [--end-of-turn stt|livekit|smart-turn] [--endpointing-ms n] [--min-interruption-words n]
                   [--eot-threshold 0.5-0.9] [--eager-eot-threshold 0.3-0.9] [--record on|off]
                   [--max-duration 1-60|off] [--min-interruption-ms n] [--llm-timeout s]
                   [--silence-timeout 5-3600] [--idle-say '…' …] [--idle-after 5-60] [--idle-times 1-10]
                   [--voicemail '…' | --voicemail silent] [--stt-fallback vendor …] [--tts-fallback vendor …]
                   [--remember '…' …] [--forget '…' …] [--team] [--note '…']
pinecall agent knowledge [--team] · knowledge edit [--team] [--note '…']
pinecall agent clear [--voice] [--tts] [--tts-model] [--stt] [--end-of-turn] [--llm] [--temperature] [--llm-builds] [--llm-options]
                     [--realtime] [--realtime-options] [--stt-builds] [--stt-options] [--tts-builds] [--tts-options]
                     [--judge] [--judge-builds] [--judge-options] [--language] [--timezone] [--greeting] [--hangup] [--turn] [--memory]
                     [--record] [--max-duration] [--silence-timeout] [--idle] [--voicemail] [--stt-fallbacks]
                     [--tts-fallbacks] [--llm-timeout] [--knowledge] [--bases] [--team]
pinecall agent clear --all [--team]
pinecall agent history [--team] · diff [--against team|production] [--team] · rollback <version> [--team]
pinecall agent pull [--team] · push <file> [--team]
                                        … and any of them with --prod, in production

An app written as code is open field by field in the sandbox. Whatever its class does not declare can be written here, and what it declares is refused by the gateway naming the field. In production an app runs what it deployed: every write of one agent's settings — agent set, clear, rollback, push, knowledge edit, lexicon add, hear and rm, pipeline melody upload, default, off and after, docs attach and detach, a memory policy with a list, cases apply — and the MCP tools over them are refused with exit 2 and one sentence naming the app: clinica-norte is set in its code: change it there and deploy. Reading stays. An agent neither GET /v1/hosted nor GET /v1/agents names — a class that is not connected now — counts as code. Pushing documents to a base is the org's and stays.

A version says what moved, so a write that changes nothing writes none: set with no field, or with the values the corner holds, and clear of a field your corner does not set are refused with exit 2 before anything travels. A write puts only what it moved in your corner: the gateway builds a call field by field from the nearest corner that sets each, so the fields you never touched keep following the team's. set and clear print what moved — the corner and its new version, then field before → after, one a line — never the whole table. clear takes fields out of your corner by the flag that set each (--language), so the team's hold again for them; a whole corner is clear --all, never a clear that forgot to name a field.

Alone, the table prints a row per field some corner sets or the class declares, then the version each written corner stands at — a corner nobody wrote is left out — and counts the rest on the hint line at the foot, since a field set nowhere reads as the runtime's default; an agent with nothing set anywhere says so in one line. A corner and a version are said by the person's name.

Terminal
$ pinecall agent
clinica-norte · sandbox

                yours           team                        production
  voice         class           class                       class
  stt           —               deepgram                    deepgram
  llm           —               anthropic/claude-haiku-5-5  anthropic/claude-haiku-5-5
  language      —               es                          es
  greeting      —               "Thanks for calling Clíni…  "Thanks for calling Clíni…
  hangup        —               when the person has what…   when the person has what…
  memory        —               remember 4 · forget 1       remember 4 · forget 1
  record        —               —                           keeps the audio
  knowledge     —               2,140 chars                 2,140 chars
  bases         —               clinica-norte (k 4)         clinica-norte (k 4)

  yours v3 · ana@clinica.test · 2026-09-19 14:32 · "flat on the phone" · team v11 · bruno@clinica.test · 2026-09-18 10:04 · production v11 · …
  → 17 more fields at the runtime's defaults · pinecall agent set --help names them

$ pinecall agent set --language es-ES
clinica-norte · sandbox · your corner v4
  language — → es-ES

What an agent runs on is its settings', unless its class declares it — per environment, per corner, a version a row (the runtime's docs/protocol/settings-api.md). The class declares the contract: its tools, its state, its render(). The language, the voice, the models, the opening, how a call ends, how a turn is cut, what is remembered, what is known by heart and which bases are searched are settings, kept by the gateway and laid over the class at the one place every session is built. A class may declare any of them itself (@voice, @llm, @stt and its static fields; the site's Settings in the class), and what the class declares wins: the table prints class for that field in every corner — voice above — and a set or a clear that changes it is refused, nothing saved, in the gateway's sentence: voice set by the class of clinica-norte: the class's declaration wins over these settings, so change it there, or take it out of the class to set it here. --tts and --tts-model are the class's voice; --temperature, --llm-builds and --llm-option its llm; --realtime-option its realtime (@realtime); --stt-builds, --stt-option and --end-of-turn its stt; --judge-builds and --judge-option its judge (@judge). Which fields are fixed is what the process holding the agent in that environment declares, else what the last one declared there: the gateway keeps it, so the table reads the same after pinecall start stopped.

How a call opens and ends is words, or the model's own. --greeting '…' is said as written; --greeting improvise has the model open on its prompt, and --greeting improvise:'…' with an instruction for the opening. The caller cannot cut the opening short unless --greeting-interruptible on. --hangup '…' is when the model may end the call, in your words; --hangup any whenever it judges the call done. --end-of-turn is who says the caller's turn is over: stt, the ears themselves (Deepgram Flux; refused for ears that cannot), or livekit and smart-turn (Smart Turn v3), a model on the worker that runs on any key. Unset, ears that do not end the turn themselves run Smart Turn v3 (runtime 0.1.44), so Soniox needs no flag for it.

A plugin's own class and options are three pairs of flags, one per stage. --llm-builds names a class of the vendor's LiveKit plugin other than its default, a dot reaching into a module of it (responses.LLM); --llm-option key=value passes one keyword argument as the plugin names it, and repeats — the value read as JSON when it is JSON (true, 1000, [1,2]), as text otherwise. The options a row sets replace the whole list it had; clear llm-options takes them out. Each one replaces Pinecall's option of the same name for the vendor. A set that changes them tries the stage once before anything is kept, so a class the plugin does not export, or an argument it does not take, is refused in its own words. They run only on the org's own key for the vendor: on a key Pinecall lends, the set is refused with llm options and builds run on the org's own openai key, and this agent's llm would run on the platform's: add yours with pinecall providers add openai, or take them out — an option can point a plugin at another server, and a lent key never goes anywhere but the vendor. --temperature is the model's, in the vendor's own range, and runs on any key; a model that takes none (Anthropic's Haiku 5.5 and later refuse it) refuses the set in the vendor's words.

A voice call can run on a realtime model while a written call keeps the LLM. pinecall providers lists, per vendor, the models that hear and speak themselves (xAI's grok-voice-3.0, OpenAI's gpt-realtime); --realtime xai/grok-voice-3.0 runs the agent's voice calls — SIP and WebRTC alike — on that model alone, no ears and its own voice, with the agent's tools and prompt as on any call, while --llm keeps answering its written calls (the chat, WhatsApp). A vendor alone, --realtime xai, is its plugin's own realtime model. --realtime-option key=value passes one of its keyword arguments as the plugin names it (--realtime-option voice=eve, Grok's voice); like a plugin's own options, the realtime model runs on the org's own key for the vendor alone — on a key Pinecall lends the set is refused with 409 a realtime model runs on the org's own xai key, …; on a deployment where nobody holds a key for the vendor at all, with 503 xai has no key: the org brought none and the box holds none. A set that changes it builds it once before anything is kept, so a model or an option the vendor does not take is refused in our words. No class is named: the runtime builds the plugin's realtime one. An --llm that names a realtime model is refused, 400 xai/grok-voice-3.0 hears and speaks itself, so it is the agent's realtime and not its llm: …. What is said verbatim (the recording notice, a greeting given as words, a read-back) is said by the realtime model itself when it can say given words — xAI's Grok can, so the call has one voice, its own; a realtime model that cannot leaves them to the agent's voice (--voice, --tts), and the call then has two. clear realtime gives the voice calls back to the ears, the LLM and the voice. The console offers the same models in Configure ▸ Pipeline, under On voice calls.

The model the agent's calls are judged on is --judge, named as --llm is — vendor/model, a vendor, a model, a tier — with --judge-builds and --judge-option beside it as the --llm pair is. It wins over the org's (pinecall judging --model), which wins over Pinecall's. On the org's own key for the vendor its evals are never billed, and a local model is that vendor's plugin pointed at your server: --judge openai/qwen3-32b --judge-option base_url=http://gpu:8000/v1. The options run on your own key alone, as every stage's do. clear judge goes back to the org's.

How a turn is decided is four numbers, and two of them are confidences. --endpointing-ms is the silence a caller is left in before the turn is called finished: ears that decide the turn themselves (Flux) take it as their end-of-turn timeout, the longest they wait, from 500 to 60000 ms (a value outside that is refused where it is set), and on ears that leave it open it is the least silence before the detector on the worker (--end-of-turn livekit or smart-turn) is asked whether the caller is done, 700 ms unless set, so a caller who pauses between sentences is not spoken over (lower answers sooner and cuts more sentences in two; higher the other way); and --min-interruption-words how many words it takes to stop the agent mid-sentence; a sound that stops it and brings no words within a second is not an interruption, and the agent goes on where it paused. The other two are for a recogniser that decides the end of a turn itself — Deepgram Flux, which is the runtime's own ears: --eot-threshold is how sure it must be before it ends one, and --eager-eot-threshold the lower bar at which it says a turn MIGHT be over, which is what lets the model start on an answer that is thrown away if the caller carries on. The two confidences are tried on the ears before they are kept, inside the vendor's own range, and a value refused is refused there, in the vendor's words, naming the knobs tried (turn eot_threshold=0.95).

What never takes the floor, whatever the numbers. While the agent speaks, a turn that only agrees ("mm-hm", "sí") is dropped before it can interrupt; so is, for a second and a half after the agent stops, a turn whose words are mostly its own of the last seconds — its voice heard back from a visitor's speakers. On a web call (the playground, the widget) the runtime also cancels that echo in the audio, with WebRTC's canceller fed what the agent plays, before the ears hear it — but only while the visitor's audio is heard to carry the agent's voice (its waveform found in theirs, up to a second late). A visitor on headphones, or whose browser cancelled the echo already, has none, and their audio reaches the ears untouched: the canceller, given no echo to learn, took what they said over the agent for echo and wiped a short "Bye.". The first second and a half of an echo goes through before it is found; the words filter above drops what of it is transcribed. A phone cancels its own.

The first of those is the knob that decides whether an agent answers half a sentence. Deepgram's own measurement of its default, 0.7, is that as much as a fifth of the turns it ends were ended before the person had finished speaking — on a line, an agent that replies to the first half of "normal cleaning needed, it gets done every couple of months" and runs a tool on half the facts. --eot-threshold 0.85 --eager-eot-threshold 0.4 is Deepgram's own pairing for a line that must not cut anybody off: the turn is committed only when Flux is sure, and the latency that would cost is bought back by the eager bar. The eager one may never sit above the other, and a set that would is refused before it is written.

--record on|off says whether this agent's calls keep their audio, and it is typed rather than being a bare flag because the answer worth being able to give is no. A corner that sets it decides for the copies built there; a corner that says nothing falls through to the one below, and an agent nobody has told keeps its audio. What is kept is the whole room — the caller, the agent, the hold music, and a supervisor who took the line — served back by the console's session screen and by pinecall sessions. pinecall agent clear record gives the answer back to the corner below.

--timezone <zone> is the clock the agent's calls open on, an IANA zone such as America/Montevideo: the model is told the day, the weekday and the hour there. Unset, it is told the gateway's day and no hour, so it cannot say what time it is. A class that declares its own (its timezone, or its app's) keeps it, and the flag is refused.

--max-duration 1-60|off is the longest a voice call of this agent runs, in minutes; unset anywhere it is ten. A minute before it the agent is told to close and say goodbye, and at it the call ends after the sentence being said — timeout by the platform in the call's log. off is no limit. It holds on the phone and on the widget's voice, never on a written conversation, and a supervisor on the line does not stop the clock. pinecall agent clear max-duration gives it back to the corner below.

--silence-timeout 5-3600 ends a voice call after that many seconds of the caller saying nothing, timeout by the platform in the call's log. Only the time the agent is waiting on them counts: never while it speaks, a tool runs, the call is on hold or a person has the line. Unset, silence alone never ends a call.

--idle-say '…' is what the agent says when the caller has gone quiet, repeated for several lines, said in turn; it replaces the list whole. --idle-after is the seconds before each, 7.5 unless set, and --idle-times how many at most, 3 unless set; the count starts over when the caller speaks. pinecall agent clear idle takes all three out.

--voicemail '…' lets the model tell a machine from a person on a call the agent placed: it leaves those words and the call ends, agent_hung_up by the agent in the log. --voicemail silent hangs up leaving nothing. It is the model that decides, from what it hears; inbound calls never get it.

--stt-fallback and --tts-fallback name who takes over when the stage's vendor fails, vendor or vendor/model, repeated in order, in place of Pinecall's own for the stage. A vendor your org has no key for is left out, and one that takes over the voice speaks the voice Pinecall has for the language.

--min-interruption-ms is how long the caller must speak over the agent before it stops, half a second unless set. --llm-timeout is how long a turn waits for the model's first word, 12 s unless set, before the caller is asked to say it again.

--language <tags> is the languages the agent's callers speak — en, es, pt-BR, or several with commas between, --language "es, en", the main one first — and what the voice, the ears and the turn-taking are set to: with several, a caller may speak any of them and change in the middle of the call, and the ears and the voice nobody named are ones that take them all (pinecall pipeline says which, and warns when a stage does not); unset anywhere, each vendor keeps its own default. It is not a field of the class, and a class that still declares language is refused at load with this verb. The prompt does not follow it: the framework's own rules are English for every agent, one of them is to answer in the language the caller speaks, and the class's docstring and render() are in whatever language the tenant wrote them. A blank tag is refused with exit 2 and nothing is written; pinecall agent clear language takes it out of the corner.

A model knob takes a tier by its short name. --llm haiku · sonnet · opus are expanded here to the model id the provider answers to — the same table pinecall test --model reads — so the corner never holds a name that is a 404 at the vendor. haiku is claude-haiku-5-5. --llm <vendor>/<model> travels as typed. A model alone rides the vendor the corner runs now: --llm claude-sonnet-5 after anthropic/claude-haiku-5-5 is kept as anthropic/claude-sonnet-5, so what is stored says it whole; with no vendor set before, the class's vendor or the deployment's default takes it. A vendor alone is refused (openai alone names no model: name it, --llm openai/<model>): a model has no default to think with, where --tts <vendor> and --stt <vendor> have one. A word that names no model at all (an empty one, half a vendor/model) is refused with exit 2 and nothing is written. A set a vendor refuses names what was tried beside the vendor's words: deepgram refused the ears this sets (endpointing_ms 400): …. A --voice is also looked up where voices looks, because a vendor may speak any name it is given (Google's Gemini voices do): one that neither the platform's providers row nor the vendor's own list on the key (cloned voices among them) names is refused — google refused the voice this sets (voice zzz): it has no voice called zzz: … — and a vendor that lists none is left to its own answer.

Three corners. In the sandbox your key has a corner of its own: what you set is yours, and a colleague's next call does not hear it — so two developers testing two voices never change each other's. A corner that set nothing reads the team's ((team's) in your column), which is the org's own corner, written with --team. Production has one corner, and --prod writes it directly: pinecall agent set --voice carolina --note "warmer" --prod, by a person whose production switch is on — the same change the production console's Settings tab makes. There is no promote between the corners: what guards production is the goldens in CI before a deploy (Production), and the history after it.

Versions. Every set that changes something is a new row; nothing is updated, nothing deleted, and a set that changes nothing writes none. A write puts in your corner only the fields it moved, and travels with the version the corner was read at, so two people saving at once never write over each other: the second is told this corner is at v4 now, not the version you read. history prints every version with who set it, why, and what it changed; diff reads this corner against the team's or production's, and diff --team the team's corner against production's — what a team runs before and after the push that makes them equal; rollback <n> brings one back as the next version — rollback <n> --prod is how a production change that went wrong is undone, in one line.

What is running, and where. list prints every process holding the org's agents in the environment asked — one line an app socket: its id, the agents it holds, whose corner, the machine and address it connected from, the SDK, and since when:

Terminal
$ pinecall agent list --prod
app_7  clinica-norte  the org's · web-1 (34.68.177.78) · pinecall/0.5.1 · since 2026-09-19 14:02

stop <app> closes that socket with the stopped code (POST /v1/apps/{app}/stop, a key with app): the process prints stopped by <name> and exits instead of dialling back, and its agents are free. A supervisor that restarts whatever exits — systemd's Restart=always, pm2 — starts it again, so a process kept that way is stopped where it is supervised. An app on the SDK hears it on pc.onStopped(why => …). The console's Agents screen has the same list, its Processes card, with a Stop per row.

Git, for whoever wants it. pinecall agent pull > pinecall/clinica-norte.json writes the corner's own row as a file — the fields it sets, not what it reads from the team's; pinecall agent push pinecall/clinica-norte.json --team sends it back as the next version, with no version check — it is what CI applies, and push … --prod is what a release applies to production, for an agent built in Studio (pull reads any agent; push is refused for an app written as code). A corner that set nothing has nothing to pull: pull says so on stderr, prints nothing and exits 1, so pull > file in a script fails rather than keeping an empty file. A push of what the corner already holds writes nothing and exits 2.

agent knowledge#

pinecall agent knowledge [--team]
pinecall agent knowledge edit [--team] [--note '…']

What the agent knows by heart — the business as the org describes it, a page of Markdown: hours, prices, what needs an authorisation, what to say when asked for the doctor's mobile. It is one field of the settings, versioned like the rest, and the runtime reads it whole into the prompt's static knowledge block on every call — so it is read once and cached, and never searched. Alone, the verb prints the corner's text; edit opens it in $VISUAL or $EDITOR, the way git commit does ($VISUAL wins over $EDITOR), and what you leave is the next version; for an app written as code it is refused before the editor opens. An unchanged file writes nothing; an empty one takes the field out. It needs a terminal: piped, it is refused with exit 2 rather than left waiting on an editor nobody can type at. The console's Configure ▸ Knowledge is the same textarea, and a supervisor's or a manager's key opens it (words) — the person who knows the prices changes them, without a developer and without a deploy.

Terminal
$ pinecall agent knowledge
clinica-norte knows nothing by heart in your corner: `pinecall agent knowledge edit` writes it
$ EDITOR=vim pinecall agent knowledge edit --team --note "prices for 2027"
clinica-norte · knowledge 2,140 chars · the team's corner v12

It is not the RAG. The documents a turn searches — a catalogue, a policy manual, anything too long to read whole — are pinecall docs, attached to the same settings as bases. pinecall agent prints the two on two rows: knowledge as a size, bases by name.