pinecallDocs
Get started / More orgs and keys

More orgs and keys

From a running runtime to more orgs: the runtime's keys, what a new org gets, what it borrows, a number.

You do not need this page to start. pinecall-runtime setup already made the org default, made you its admin and the runtime's operator, and lent it every vendor key it found, with no limit: you sign in and build agents in it from the first minute (On your machine, On your server). Come here when you want one of these:

  • another key, or a new one in place of an old one;
  • another org, for a customer or a team, with people of its own and limits of its own;
  • a phone number the runtime buys for its orgs.

Every command here is pinecall-runtime, run on the runtime's machine after eval "$(pinecall-runtime local env)", or on Kubernetes inside a gateway's pod (kubectl exec deploy/pinecall-gateway -- pinecall-runtime …). These verbs write the database directly, so they need DATABASE_URL and PINECALL_VAULT_KEY, not the gateway (Environment variables). Each one is also a screen of the console's Box section, which only an operator sees.

Who pays for a call#

Every call runs on three vendors: speech-to-text, a model, and a voice. For each, the runtime takes the org's own key when the org brought one; otherwise the runtime's key, when the runtime holds one and lends it to that org in that world; otherwise the call is refused before it opens.

you want do
orgs that never see a vendor key, all on yours (a demo, a trial, your own team) hold the runtime's keys, lend them every vendor
orgs that bring their own keys and pay their own vendors lend them nothing
a trial on your keys, then their own lend in the sandbox, lend nothing in production

1. The runtime's keys#

setup holds every key it found in the environment or your shell's files. To add one later, or to put a new key in place of an old one:

Terminal
$ printf '%s\n' "$DEEPGRAM_API_KEY" | pinecall-runtime box keys set deepgram
$ pinecall-runtime box keys list
anthropic
cartesia
deepgram

The key is read from stdin, sealed under the vault key, and read back by no door. Console: Box settings ▸ Keys ▸ Vendor API keys. A new key takes over from the next call, in every org it is lent to and in default, whose own copy of the old key it replaces; box keys rm deepgram stops lending it. Which vendor and model a call uses when the agent names none is the providers row (the console's Box settings ▸ Defaults).

2. Say what a new org is given#

Admission is what every org gets the moment it is made: each world's limits, and the keys it may run on. Nothing set means no limit and every key lent.

Terminal
$ pinecall-runtime box admission set --env sandbox --minutes 30 --evals 500 --simulations 10 --lends all
$ pinecall-runtime box admission set --env production --minutes 0 --lends none
$ pinecall-runtime box admission show

--lends takes all (every key the runtime holds), none, or the vendors to lend — --lends deepgram,cartesia,anthropic/claude-haiku-5-5, a vendor/model entry lending that model alone. --later sets what a person's later orgs get, for one trial per person. Minutes, messages, tokens, evals and simulations are a month's and start again on the first (UTC). Console: Box settings ▸ Admission. An org already made keeps what it got.

3. Make the org, and invite its first person#

Terminal
$ pinecall-runtime orgs add demo --name "Pinecall demo"
$ pinecall-runtime orgs invite demo you@example.com --name "Your Name" --role admin

invite prints the link once; the person sets a password there and signs in — or an admin sets it for them, with no link, with pinecall team password <email>. Console: Box ▸ Organizations ▸ New organization. On a runtime nobody has used, pinecall-runtime setup (on one machine) or pinecall-runtime init makes the first org and person in one step.

4. Change what this org may use#

Terminal
$ pinecall-runtime orgs lends demo --env production all        # this org may run production on your keys
$ pinecall-runtime orgs quota demo --env production --minutes 600 --concurrent-calls 2

orgs lends changes only what the runtime lends; orgs quota changes only the limits and keeps what is lent. Console: Box ▸ Organizations ▸ the org ▸ Limits, where The runtime's keys this org may use is a checkbox per vendor the runtime holds. Who in the org may act in production is per person: an admin always may, anyone else when an admin turns it on in Team.

If the org should run on keys of its own instead, it brings them (pinecall providers add, or Settings ▸ Providers), or you set them for it: printf '%s\n' "$KEY" | pinecall-runtime orgs provider-key set demo deepgram.

5. A phone number#

There are two ways, and the org may use both.

The org's own Twilio account. The org connects it — pinecall carriers add twilio --account-sid AC… --user SK… with the secret on stdin, or Numbers ▸ Add a number ▸ Twilio — and imports a number it owns: pinecall numbers import +34910000000 --agent <slug> --prod. An org may connect several accounts; with more than one, --account names the one that owns the number.

Numbers the box buys. Give the box a Twilio account of its own; every org may then buy numbers on it, counted against its numbers limit:

Terminal
$ printf '%s\n' "$TWILIO_SECRET" | pinecall-runtime box numbers-account set --account-sid AC… --user SK… --label Pinecall
$ pinecall-runtime box admission set --env production --numbers 2 --lends none   # two numbers per new org

The pair is tried with Twilio before it is kept. Console: Box settings ▸ Keys ▸ Twilio account for buying numbers. The org then buys with Numbers ▸ Add a number ▸ Buy a number here, or pinecall numbers buy --country ES --area 91 --agent <slug> --prod. A bought number answers calls; it cannot call out, because it dials through no account of the org's.

Either way, phone calls need the runtime's SIP reachable on 5060: on your machine, Linux and a carrier that reaches it (On your machine); on a server, setup --phone (On your server); on a cluster, the SIP names (On Kubernetes). A carrier other than Twilio is admitted at Box ▸ Carriers.

6. The first call#

Signed in as the person you invited, in a project whose pinecall.json names this gateway and the org (pinecall new writes it on a signed-in machine):

Terminal
$ pinecall login https://your-gateway.example.com
$ cd your-project
$ pinecall limits          # what the org may use, and whose keys its calls run on
$ pinecall start

Call the number, or open the agent in the console and talk to it from the browser. To try the sandbox copy on the same number from your own phone, pinecall line from +34600000000 while pinecall start holds the agent.

Next steps#