pinecallDocs
Get started / Quickstart

Quickstart

From nothing to an agent that answers, in ten minutes, in TypeScript, Ruby or Python.

From nothing to an agent that answers, in ten minutes. You install one command, sign in, create a project in the language you like, read what the model will see, hold the agent, talk to it, and run its first test. Everything runs in your org's sandbox on Pinecall Cloud: a space of your own to try things, where nothing reaches a real caller.

Before you start#

  • Node 24 or later. The pinecall command is a Node program, whatever language your agent is written in. node --version tells you which you have.
  • A Pinecall account. Sign up at cloud.pinecall.io if you do not have one; the quickstart signs you in from the terminal.
  • For a Python agent, Python 3.11 or later and uv. For a Ruby agent, Ruby 3.2 or later and Bundler. A TypeScript agent needs nothing more than Node.

Install the CLI#

Terminal
npm i -g pinecall
pinecall --version
0.11.11

One command, installed once per machine. It serves an agent in any of the three languages.

No account, and nothing sent to a cloud? pinecall-runtime setup runs the whole runtime on your machine, open models included, and signs this machine in to it: skip pinecall login below. On your machine walks it.

Sign in#

Terminal
pinecall login
gateway  https://cloud.pinecall.io   (the default — `pinecall login <url>` for your own)

open this to sign in:
https://cloud.pinecall.io/cli?c=cli_…

waiting…
signed in to https://cloud.pinecall.io as Ana García · org acme

It opens the browser so you can sign in, and keeps this machine signed in: once per machine, and every pinecall command uses it, in any folder. No key is written into your projects.

Create a project#

Pick a language. The project is the same shape in all three: one folder per agent under agents/, holding the agent's class and its tests.

pinecall new acme --agent front-desk
cd acme
npm install
pinecall new acme --agent front-desk --python
cd acme
uv sync
pinecall new acme --agent front-desk --ruby
cd acme
bundle install
▸ acme · a TypeScript project · agents/front-desk/
  runs in acme at https://cloud.pinecall.io (pinecall.json)

  cd acme
  npm install
  pinecall chat        talk to it here
  pinecall test        its goldens, against a real model
  pinecall start       answer calls

acme is the project: the business, and the folder. front-desk is the agent: its folder under agents/ and its name on Pinecall. A project holds as many agents as the business needs, each added with pinecall generate agent <name>. An agent's name is one org's on a gateway: if pinecall chat later answers agent front-desk belongs to another org, somebody took it first — write the agent again with a name of your own (pinecall generate agent ana-front-desk). The lines under it are the steps that follow. npm install (or uv sync, bundle install) installs the SDK the agent is written with; the project depends on nothing else.

Inside the folder:

agents/front-desk/agent.tsx              the class: its state, its one tool, its prompt, its judges
agents/front-desk/harness.ts             its own judges, as code: how one is written
agents/front-desk/test/agent.test.ts     a unit test: the class as software, no network
agents/front-desk/test/goldens/          a golden: a conversation the model must hold
agents/front-desk/test/personas.ts       the callers it is tested with, as code: two of Pinecall's, and `hurried`
package.json · tsconfig.json             the toolchain, with @pinecall/agents as the one dependency
agents/front-desk/agent.py                the class: its state, its one tool, its judges
agents/front-desk/harness.py              its own judges, as code: how one is written
agents/front-desk/views/front-desk.jinja  its prompt's view, a template beside the class
agents/front-desk/test/test_agent.py      a unit test: the class as software, no network
agents/front-desk/test/goldens/           a golden: a conversation the model must hold
agents/front-desk/test/personas.py        the callers it is tested with, as code: two of Pinecall's, and `HURRIED`
pyproject.toml                            the toolchain, with pinecall as the one dependency
agents/front-desk/agent.rb                the class: its state, its one tool, its judges
agents/front-desk/harness.rb              its own judges, as code: how one is written
agents/front-desk/views/front-desk.erb    its prompt's view, a template beside the class
agents/front-desk/test/agent_test.rb      a unit test: the class as software, no network
agents/front-desk/test/goldens/           a golden: a conversation the model must hold
agents/front-desk/test/personas.rb        the callers it is tested with, as code: two of Pinecall's, and `HURRIED`
Gemfile · Rakefile                        the toolchain, with the pinecall gem as the one dependency

The agent --agent writes is a front desk: it answers from the documents it is given and, for anything else, takes a message — the caller's name and what the call is about — with its one tool, takeMessage (take_message in Python and Ruby). Its class declares the eight judges Pinecall recommends, and test/personas.ts (.py, .rb) names two of Pinecall's callers and holds one of its own, so the console shows them from the first start, locked, as the code's. A judge of your own is code in harness.ts (.py, .rb), added to the class's judges; a caller of your own is one more ownPersona in the personas file, which the class does not import.

pinecall.json, at the project's root, says where it runs: the gateway you signed in to and your org there. With several orgs, new asks which. Commit it: it holds no key.

To see which org and gateway the CLI is using at any time:

Terminal
pinecall whoami
gateway https://cloud.pinecall.io · org acme · key from your sign-in (~/.pinecall/session.json) · sandbox
  org acme · key k_4f2a1d9c66b30e17 · sandbox · ana-macbook · production: yes

The first line is where commands go and which key they use. sandbox means nothing you do here reaches a real caller; --prod on a command acts in production instead.

Read what the model reads#

Terminal
pinecall prompt
── identity (static) ──
You answer the phone for the business as its automated assistant, and your first sentence says so. …

<rules>
- Invent nothing: if it did not come from a tool or from the knowledge, do not say it.
- One question per turn, and wait for the answer.
…
</rules>

── knowledge (static) ──

── tools (static) ──
<tools>
- takeMessage: Writes down the caller's message. Call it as soon as the caller has said their name …
</tools>

── history ──

── view (dynamic) ──
A question the documents answer, answer. Otherwise take a message: ask only for what the caller has not said yet, their name or what the call is about, and call takeMessage the moment you have both. Greet nobody twice.

── tools ── stage: ask

  ● takeMessage  ask

This is the exact text the model reads when a call opens, with no key and no network. It has four blocks: identity is your class's docstring plus rules Pinecall adds for every agent; knowledge is what the agent knows by heart (empty until you write it with pinecall agent knowledge edit); tools is every tool with its docstring; view is what your class says to do in this turn. Under the blocks, the stage the agent is in and the tools the model may call now. Change the class and run it again.

Hold it#

Terminal
pinecall start
front-desk · acme · sandbox · connected to https://cloud.pinecall.io · key from your sign-in (~/.pinecall/session.json) · tools 1
talk to it  https://cloud.pinecall.io/sandbox/a/front-desk/playground
doors    web

This is the process that answers: on your laptop now, on a server later. It holds the agent until Ctrl-C and prints every call as it happens. Leave it running, and open a second terminal in the same folder for what follows: chat, test and simulate talk to the agent this process holds, and start nothing themselves. The talk to it line is where to see the agent in the browser and talk to it by voice; doors is how callers reach it, the web for now, a phone number once you point one at it.

Talk to it#

Terminal
pinecall chat
‹ Hi, I'm Ana Lopez. Please tell the manager my last order arrived broken.
→ takeMessage({"name":"***","about":"last order arrived broken"})
← takeMessage {"name":"***","about":"last order arrived broken"}
› Got it, Ana. Your message has reached the team. Goodbye!

‹ is you, typing. → is a tool the model called, with its arguments, and ← what it answered: the name shows as *** in both because the class marked it as personal data, and the log masks that value wherever the agent wrote it down. What you and the agent said is not touched. › is the agent's answer. The agent runs on your machine, so a breakpoint in takeMessage stops there. Ctrl-D hangs up.

Run its first test#

Terminal
pinecall test
front-desk · 1 golden · the app's own model
  ✓ takes-the-message  llm_node_ttft 380ms
  1/1 · 0 judge calls · $0.0027 · 2s

A golden is a conversation written down, with what must be true at the end. This one says: a caller leaves a message, and the agent must call takeMessage. pinecall test plays it against a real model and checks the result. ✓ is a pass; llm_node_ttft is how long the model took to start answering; the last line is the score, the model calls it cost, and the time. Add one golden per behaviour you care about, in agents/front-desk/test/goldens/.

The unit test runs with no network and no model: npm test, uv run pytest or bundle exec rake.

Give it documents#

Terminal
rm agents/front-desk/docs/README.md
printf '# Refunds\n\nA refund reaches the card it was paid with within ten working days.\n' > agents/front-desk/docs/refunds.md
pinecall docs push
pinecall docs attach front-desk
front-desk · 1 files · 1 chunks · english · 212 ms
front-desk · front-desk attached · your corner v2

docs push uploads the agent's docs/ folder whole as a knowledge base named after the agent, in the language counted from its words (the README.md the project came with only said what the folder is for); docs attach tells the agent to search it on every turn. Run pinecall chat again and ask how long a refund takes: the answer comes from your file, and nothing in your code changed.

Its voice, and the rest of its settings#

Terminal
pinecall voices --language en      # the voices, with their ids
pinecall agent                     # what it runs on: voice, models, language, greeting…

The voice, the models, the language and what it knows by heart are the class's: @agent({ voice: "<vendor>/<id>" }) above it, and the next pinecall start or deploy runs on it. What the class declares is the class's alone; what it leaves open can be set in the sandbox. pinecall console shows the same, with every call the agent has had.

Go live#

To ship it, pinecall deploy uploads a TypeScript project and Pinecall runs it for you; a Python or Ruby agent runs on a server of yours with pinecall start --prod.

Next steps#