heyphony
a jerryrigged workaround for giving your ai agent a phone number of its own, one you can actually reach
there is no product that sells a phone number to a program. there are products that sell a phone number to a company that happens to have an ai agent, at a markup, behind a dashboard nobody's risk engine reads. this repo is the other route: a number bought for about a dollar a month, registered to a client on a host you already run, with a cli in front of it so the thing that answers is a process and not a person.
that is the whole pitch, and it is smaller than it sounds. your agent ends up with a phone number of its own, in the same network as every other number, dialable and textable from the phone already in somebody's pocket. everything below is the argument for the shape and the way to get it.
this is not the number for the other kind of company. if the job is bulk outbound calling driven by a model, marketing campaigns, or a sales dialer working a list, that is a different product with consent, attested origination and a registered business behind it, and there are already enough companies selling it well that the honest advice is to go and look at them. what is here is deliberately the opposite shape: one number, one agent, one message at a time, at the pace a person would keep.
if you opened this repo and could not tell how it runs, that is what directory.md is for: the tree, the setup flow and the manage flow drawn separately, and where each command sits.
telecom was built for people, and that is still the layer agents need
the interesting thing about the current moment is not that agents are new. it is that a large number of people have looked at the telephone network, decided it belongs to a previous era, and started rebuilding it for machines. this repo takes the other side of that bet, and the reason is not sentiment about copper.
eighty years of infrastructure that already works
the public telephone network is the most thoroughly solved communication system that exists. a number is a routing entry that resolves anywhere on earth. a call is a handshake that works through routers, carriers, mobile networks and legacy switches that predate the web by decades. a text reaches a phone that has no app installed, no data plan and no idea what an api is. the pbx in the office closet and the softphone on the desk are the two ends of that same ordinary stack, and both of them have been operating at scale since before the people building agent frameworks were born.
none of that is fashionable, and all of it works when the far end is a human being with a phone in their pocket.
the rewrite everyone is reaching for
the obvious move for a new era is a clean sheet: an agent native network, agent to agent protocols, a stack where both endpoints are programs, no legacy anything. it is a genuinely interesting line of work and some of it will become the standard. but it starts from a hard position, which is that it has no one on the network yet. a protocol for agents talking to agents becomes useful when agents are the thing that answers, and right now they mostly are not.
the fact that changes the plan
look at what an autonomous agent is actually trying to reach when it picks up a phone. it is trying to book something, confirm something, chase something, cancel something, or ask a business a question. the far end of that call is a person at a desk, or a call queue, or an ivr that was installed in 2011. it is a human service, reached over the same cellular infrastructure everyone else uses, because that is where the humans are.
so the honest design goal is not "build telecom for agents". it is "make the telecom that exists handleable by something without eyes and without patience", and those are very different amounts of work.
adapted, rather than invented
which is why heyphony is not ai native from scratch. it is ai adapted: it takes the brick and mortar pbx and softphone infrastructure that has been sitting there forever, and it changes what has to change for a process to drive it.
- the config a human would type into a dialog is generated from the client's own schema, written
0600, on the host that holds the registration. - the socket a softphone never used is the one an agent speaks: the client already exposes a json control channel, and the job was reading its source rather than guessing at a screen.
- the inbox a mailbox gives a human for free is rebuilt as files plus a sidecar, because a payload never says whether anyone looked.
- the menu a person clicks is also a flag, and a run with no terminal returns the next question instead of waiting for an answer that will never come.
meeting telecom at its level, as the current needs call for, is the whole approach. the network is not the problem, and replacing it is not the job. making it answer a process is.
when agent to agent matures, that is a different lane
this is not a claim that a2a is wrong or unnecessary. it is a claim about ordering: the demand that exists today is agents reaching human services on the infrastructure the humans already use, and a number is how you get there. when the other thing arrives, it will be a different lane with a different shape, and this one will still be sitting on the same network as everybody's phone.
the market splits the number in half
the other thing that pushed this repo into existence is quieter than the network argument, and it is about what is on sale. the offers are decoupled, and the coupling is the whole point of having a number.
the two halves are sold separately
look at what exists for an agent that needs to be reachable and find yourself choosing between two products that each do half the job:
- voice first. services that assign a voip number to an agent so it can place and take calls. usually aimed at call centres and heavy outbound callers, and usually priced by the minute. texting is not part of the deal, because texting is a different meter.
- text first. ai texting services with an inbox, a thread and a reply, and no calling at all. some of them will not even give you the number, only a seat inside their product.
- neither of them exposes the sip layer, which is the thing that would let one number be both, because the sip layer is where the margin stops being theirs.
so an agent ends up with a voice number and a separate texting number, two identities for one human relationship, and no way to connect them.
why an agent needs both on one number
a person does not have a calling number and a texting number for the same plumber. they call it, then they text it, and both arrive in the same thread of the same relationship. an agent that is supposed to behave like that has to do the same thing: read the call log and the message thread as one context, decide that the missed call and the text twenty minutes later are the same conversation, and reply on whichever rail the person actually used.
two numbers makes that impossible in a way that is not a bug you can fix later. the identity is split at the network, so no amount of cleverness in the inbox puts it back together.
what we do instead
one number, registered to a client we run, with the sip layer in our own hands. the call log, the texts and the voicemail come from the same number, land in the same store, and the agent reads all three without asking which product they came from. that is why this repo is a client and a cli rather than a subscription: the hybrid you want is the thing a hosted product has to charge you twice for.
what it gives you, turnkey
a number that rings a process. calls arrive and become a call log, texts arrive and become a message, voicemail arrives and becomes a file, and all three land somewhere an agent reads without a mail client, a softphone or a pair of eyes.
an inbox with the three things a mailbox gives a human for free. a stable handle for a message, an answer to "is this new", and a cheap way to read exactly one item in full. heyphony open messages exists for that reason, and read state lives in a sidecar rather than being invented from a payload that never says whether anyone looked.
the setup is a cli, so a process can operate it
every menu is also a flag, and a run with no terminal returns {needs, flag, options} as json instead of blocking. heyphony setup select sip is the guided path a person uses, and heyphony setup --provider voip.ms --did +1... is the same thing with the menu skipped. nothing in this repo prompts and waits.
what a number unlocks, one command each
signal wants a phone number before it will talk to you, so heyphony get signal is the whole install. telegram is the second ramp, in two flavours, because a bot and an account are different creatures wearing the same name.
an answer, one message at a time
heyphony send exists, and it is the narrowest version of outbound that is still useful: one recipient, one body, drafted unless the gate is open and the call asks for it. a reply to somebody who wrote first is the case it was built for, and a loop over a list is the case it refuses.
on a call while a text arrives, which is the question people actually ask
the scenario is not exotic, it is tuesday: the agent is on a call and the person decides explaining is slower than sending the thing. "hold on, i just sent you a screenshot", said out loud, mid-sentence.
a number carries both because a text never rides sip and a call never rides http, so they are two deliveries to one did. what has to be true is on our side, and it is three small things.
two doors, no queue. the invite arrives on the socket baresip already owns; the text arrives as
an http post to the catcher. the catcher is threaded now, because a single thread meant a slow carrier
could hold the door shut while a call was up. a test makes the store slow to prove two webhooks are
served at once rather than one after the other.
one log, with sequence numbers. heyphony live --run holds both rails and writes one ordered
timeline, so answered -> text -> hung up is a claim you can check instead of reconstruct from two
files. that ordering is the whole answer to "i just sent it", because the alternative is an agent
answering a text that arrived before it heard the sentence.
the picture is reachable. an mms is a text plus urls on the carrier's own host, so the envelope
now carries media for ten provider shapes, and heyphony media fetch --url ... --into DIR downloads
one under an 8 MB cap, naming the file for its content type. it refuses a non-http url
(fetch-the-whole-internet), an oversize file (a-picture-of-any-size) and a type that is not a
picture or a voice note (read-as-an-image-what-is-not). fetching a jpeg is not describing it, and a
url behind the account's login answers 401 rather than pretending.
heyphony live # what this is, what it refuses, what was never proven
heyphony live --run --seconds 300 # hold the call socket and the webhook, print the timeline
heyphony media fetch --url https://carrier.example/m/9.jpg --into ~/media --id msg_1281
honest scope: the suite proves this over a fake sip socket and a real local webhook, which is the
part that is ours. a registration at a carrier, and a carrier's own mms arriving on a live call, are
not proven and are not claimed. the audio stays baresip's: joining the call to a livekit room and
turning it into a transcript are still not shipped.
placing a call, and the lane that owns it
the inbound rails are the ones that work while nothing is awake. outbound is the opposite trade: it
needs somebody present, it needs media, and it is the only thing in this package that rings a real
person. so it lives in its own lane, src/callheavy/, behind its own shim, bin/callheavy, and it is
driven by a task rather than by an argument.
bin/callheavy host # write the baresip config and accounts this lane drives
bin/callheavy plan --via callheavy --goal "confirm tuesday at seven"
bin/callheavy dial --via callheavy --goal "confirm tuesday at seven" --send
bin/callheavy status --id <call> # or cancel --id <call>, for the hosted rail
bin/callheavy mic # the capture device, and what it costs
bin/callheavy room # the livekit gate, and the bridge that is not shipped
nothing has a default rail: --via callheavy|calle is required, because "dial this" is a sentence
whose meaning changed the moment there were two ways to dial it. callheavy is baresip over its own
ctrl_tcp socket, which is the rail that has been proven here. calle is a hosted voice agent, a
client written against their published spec and audited against it, and it refuses to run without
HEYPHONY_CALL=allowed and CALLE_API_KEY: handing a third party the audio and the reasoning is a
decision somebody makes on purpose, not a convenience.
the ears and the mouth are built. src/callheavy/pump.py puts the agent's voice where baresip
reads its microphone and records what baresip plays, through four pulseaudio null sinks, two per side,
because a sink whose monitor is also the microphone feeds the call's own playback straight back and
saturates the capture. pulseaudio's null sink keeps its own clock, so this works on a machine with no
sound card. src/callheavy/rig.py starts two real baresip instances that call each other over
loopback and the suite carries a tone in each direction, at the level it was spoken and at least a
thousand times weaker in the other direction.
the call this program placed itself
waiting for a call and placing one were two programs until they were one flag. heyphony live --dial
asks the calling lane's own gate, dials over the socket it is about to watch, and then keeps watching:
heyphony live --run --dial --to +15550000001 --goal "confirm tuesday at seven" \
--schema tuesday.json --success "tuesday_confirmed answered" --authorized "tinkrland"
the same gate the lane uses, because a call is somebody's phone ringing whichever verb asked for it:
no --goal, no --schema, no --success and no --authorized means nothing is dialled, and the
refusal names each missing flag. the difference from bin/callheavy dial is where the socket goes
afterwards. that verb follows the call and closes its connection, which is right for one call and
wrong for a program that also has to hear a text arrive mid-sentence. here the socket that dialled is
the socket that watches, so the log can say "dialled, answered, a text arrived, hung up" as one order
rather than as two files someone lines up by hand.
honest gaps, and they are specific: no call has been placed over a carrier registration, joining the
call to a livekit room is not shipped (bridge_plan says why: two media clocks and two codecs is a
project), and the audio is not turned into a transcript. a real call with a real person is the next
proof, and it is the only one that settles it.
leaving a voicemail is the same act, with a voice
heyphony voicemail --to +1... --message "..." --send places one call and speaks a message you wrote. the pstn leg comes from your livekit trunk rather than from this repo, and the speaking half is a python worker (livekit-agents, apache-2.0) that heyphony writes to disk so you can read it, edit it and run it yourself: a call that only exists while some service worker is alive deserves to be visible rather than magic.
two things about it are worth saying plainly rather than discovering on the first call:
- there is no answering-machine detection here. livekit does not offer it and a naive attempt at it is how an agent ends up talking over a person. the plan waits a fixed number of seconds after the answer and then speaks. if a human picked up, a human hears the message. that is why
--waitis a flag and not a promise. - a voicemail is not a call you can hold. nothing here receives the far end's audio into a conversation, transcribes it, or dials back. it is one outbound leg with a spoken message at the end of it.
it is gated like the text rail: HEYPHONY_CALL=allowed and --send, both, or you get the plan printed in full.
the same answers over mcp, for an agent that is not a shell
heyphony-mcp is a model context protocol server, and it is deliberately the smallest thing that could work: json-rpc on stdin and stdout, no dependency, and each tool is one of the commands above with its json handed back as the tool result. fifteen tools, and the interesting part is not the count, it is which way the arrows point. three of them reach outside this machine (heyphony_send_text, heyphony_group_say, heyphony_voicemail) and the other twelve only read, so readOnlyHint in tools/list is a fact about the code rather than a label somebody typed.
{ "mcpServers": { "heyphony": { "command": "npx", "args": ["-y", "-p", "heyphony", "heyphony-mcp"] } } }
the gate stays shut, and that is the design. a send needs the --send flag and HEYPHONY_SEND=allowed in the environment, and the server is not allowed to close that second one on a caller's behalf: an mcp client has no approval dialog, so a tool that quietly sent would turn a human decision into an agent one. when the variable is absent the tool still runs, still answers, and returns the draft with the gate named in the result. HEYPHONY_CALL=allowed is the same story for dialling. what is not exposed at all is the pair of verbs that spend without a conversation: provision --purchase is parked in the cli and hooks --apply is left out of the server, because pointing a carrier at a machine is a decision rather than a tool call.
the sdk is the cli with the parsing done
require("heyphony") gives a node host run(args) and a handful of thin wrappers (status, messages, calls, sendText, groups) that spawn the same python and return the same object the command prints, with { ok, code, json, text, stderr, why } rather than a string to be parsed again by hand.
there is no second implementation to drift, and the wrappers cannot get round a gate either, which is the one property worth having twice: the gates live in the python, and both adapters only pass arguments to it. whether this becomes a package of its own, or stays the main field of this one, is a question for after the branch lands; nothing here is published from a side branch.
what comes back, and how a reply is answered
a member's reply arrives as an ordinary one-to-one text from their number, because that is the only kind of text this number can receive: we never started a carrier group, so nothing marks the message as belonging to one. heyphony open messages therefore names the group on a row where the sender is a member (groups: [{id, name, member}], with a note saying it is their own text), and it resolves that name at read time from your own records rather than writing it into the stored message, so history is never rewritten when a member joins later and a person in two groups gets both names instead of a silently picked one.
heyphony group show dinner then prints the thread: your sends and their replies in one order. because the carrier contributes nothing, an inbound row is a member's text matched by membership, and the output says exactly that rather than implying a group message arrived.
heyphony group reply dinner --text "seven then" --replying +1... is what "reply to the group" can honestly mean here. it goes to every member through the same one-recipient rail, so the replier receives it in the same thread they used, as if you answered them, and every other member gets their own copy. nobody sees a group, and the command output carries that sentence rather than leaving it to be discovered.
the code the group carries, so a reply can name itself
membership is a guess, so a group gets a code of its own at the moment it is created: four characters drawn from an alphabet with no B, I, O, S, 0, 1, 2, 5 or 8, because a code gets read aloud, copied off a screen and typed back, and those are the pairs that turn one into another. heyphony group new prints it and group show keeps printing it.
the code rides on the end of what members receive, eight characters and no more: seven then leaves as seven then\n\nref K7QD. that is the whole point of it. a member's reply can then name its group instead of being guessed at, and a member can answer with the code alone if they want to be unambiguous. --no-tag sends the body by itself, and the output says the cost rather than leaving it to be discovered: eight characters can push a body near the ceiling into a second segment, which is a second message and a second charge.
so attribution is a ladder with the evidence named, not a single rule. a body quoting the group's code is by: "code" and certain. a text arriving on a did the group holds is by: "number" and certain. no code, one group in our records is by: "membership", reported as a guess, and no code with two candidate groups is by: "ambiguous", which reports both and picks neither. every inbound row carries certain beside the name, because "this is bo's group" and "this came from a number that is in bo's group" are different claims and the second one is the one that could be wrong.
the strongest form is a number of its own: group new --number +1... attaches a did to the group, and then a reply is addressed rather than inferred, which also covers a member texting from a phone we never recorded. it costs a number per group, which is why it is optional rather than the default, and it still starts no carrier group thread, so the members still do not see each other.
and the code is not a secret, which is stated in the command output as well as here: it names a conversation, not a person. anybody holding the message can quote it, so it never proves who is writing, only which group they mean. it also cannot recover a reply whose tag was deleted, a text somebody forwarded from the message, or a carrier group mms, which arrives with its members in a payload this package does not parse.
two limits, stated because they are invisible otherwise. a real carrier group mms from somebody else arrives as an mms from the group or the original sender with the members in a payload this package does not parse, so it is not turned into a group and no media is read. and membership is the only marker there is, so a member texting you one-to-one about dinner is indistinguishable from their group reply, which is a property of the rail and not of the code.
the thread, and the correction that the group is the id
a group chat is not a list of people, it is an id that a carrier carries. a message sent into that id is a group reply for everybody reading the thread, which is what the agent should be doing when it answers a group, so the shape here is the thread first and the list second.
heyphony group adopt --thread <carrier id> --with +1... --with +1... takes a thread the carrier already uses and makes it the group. attribution then reads by: "thread" and is certain, the strongest rung on the ladder, because the carrier named the conversation instead of us inferring it from who happens to be in it. an inbound payload that carries a thread id or a participant list is read for exactly this reason (THREAD_KEYS and PARTICIPANT_KEYS in the inbound normalizer), so a carrier with group mms lands in the right place without a code change.
what the thread needs next is a send path that can address a thread, and none of the ten wired here can: voip.ms takes one dst per call, flowroute's message body carries to as one number, and signalwire's message endpoint documents to as a single e164 string. that refusal is data in THREAD_SEND with the reason per provider, and the consequence is stated in the output rather than buried: on a thread group, today's reply is a fan-out, so each member gets their own one-to-one text and the other humans will not see it in the group chat they are reading. thread_gap says that in the same breath as the send.
the fan-out is still there for the providers that have nothing else, and it is what this repo shipped first: each member receives a one-to-one text from your did, with no sign that anyone else exists, and the shared transcript lives in your records rather than in their phones. the correction worth keeping is that this is a property of a one-recipient API and not of sms. an earlier version of this page claimed most carriers cannot carry a group text as a group, which was wrong about the carriers and only right about our own rail.
looking a number up is a read, and that is why it is the safe half
heyphony --lookup +447700900123 answers what a number is from the plan that issues it: mobile for a range issued for mobile services, landline for a geographic one, voip for the uk's own 056 range, personal numbering for 070. it also answers the question behind the question, receive_text: a mobile range can take a text, a geographic landline mostly cannot.
heyphony --lookup +1555... support answers per service instead, and this is where the tool refuses to be clever. a numbering plan can say whether a range can receive a code at all. it cannot say whether this particular number already has a whatsapp account, because that is a fact held by whatsapp and nobody else. so the verdicts are possible, unlikely and unknown, never a boolean, and heyphony --lookup +1555... probes prints the exact probe each service would need along with what running it would do: one of them sends an sms to that handset, and two of them lean on undocumented endpoints.
+1 is where the two kinds of evidence separate cleanly. the north american plan encodes no line type, so a +1 number comes back type: unknown with carrier-question as its evidence and the carrier-lookup adapter named and marked unwired. it encodes a great deal of geography: the area code is assigned to a country, a territory or a region, so heyphony --lookup +13405551234 answers VI, U.S. Virgin Islands and, for a geographic code, a place like New York, NY or Ontario. +1 is not the united states and canada: the plan is shared by 25 countries and territories, from puerto rico and the us virgin islands to jamaica, bermuda and trinidad, and the area code also says whether the number is geographic, non-geographic, toll-free, premium or a personal follow-me number.
the same reader takes the other two address forms a person actually has. --lookup dana@icloud.com reads an address: the local part says whether it is a person or a shared desk, the domain says who issues it, and the answer is possible, unknown or unlikely for iMessage rather than a guess. Apple issues an iCloud account one of three address forms, so @icloud.com, @me.com and @mac.com are apple account addresses by construction, which is the strongest thing an address can say about iMessage. each answer also carries a three valued matrix: imessage: true for an address, because iMessage routes to an apple account and an address can be one, signal: true for a signal handle, and null where the capability belongs to an account rather than a string. capability is a boolean, existence keeps its verdict. every answer also carries a fallback ladder, so a line showing imessage: unknown says what comes next: rcs (the carrier's universal profile, which follows the text evidence) then sms, and a ladder that reaches nothing says so instead of leaving the caller to try another app.
--lookup alice.42 reads a username, which is the one form this package deliberately cannot route and therefore has to be honest about: signal wants a nickname and a discriminator, whatsapp wants a plain handle, and alice.42 is legal on both while naming a different account on each.
for one person there is a better instrument than a scanner, and it is resolution: signal's own client library can turn a username or a signal.me link into an account id without sending anything, and a small resolver on top of libsignal (signal-whois) does exactly that from an identity you already own. that is one request, one exact string, and the thing it returns is a pseudonym, so the output names all three limits. whatsapp has no such path, which the output says rather than dressing a first message up as a check.
turnkey osint tools do answer the questions this reader withholds (holehe for accounts behind an address, sherlock and maigret for usernames across hundreds or thousands of sites, phoneinfoga for numbers). they are named on the lookup page with what each answers and what it costs, and kept outside this package for three reasons: the cost lands on the person being looked up, the site modules rot, and a scan across thousands of hosts is not a lookup.
when the plan cannot fill a field, the answer says so with the reason rather than leaving a null: a toll-free code has no region because a toll-free code is national by design, and that empty region is the plan being exact.
a whole number is not always needed either. the geography sits in the first three digits, so heyphony --lookup +1212 answers from the area code alone and says the subscriber digits were not needed, which is this half's version of preferring a domain to a local part.
heyphony lookup eval runs a labelled fixture corpus and counts a claim beyond the evidence as overreach, separately from a wrong answer: 20 cases, 20 passing, 0 overreach. the fixtures and the tables share an author, so a pass proves the code agrees with the table and not that the table is right, which is the same contract as themailtell and the reason the numbers are printed with that sentence attached.
the number outlives the machine
the honest shape of a phone number is that half of it is somebody else's computer, so the interesting question is what happens when the host sleeps.
- device on: calls ring the host client, texts arrive through the provider's webhook into the inbox.
- device off: calls do not arrive, because a call needs a registration and a registration needs a running host. texts still do, because sms never travels over sip. voicemail depends on the carrier, and the per provider table in providers/ says which carriers keep it for you.
that asymmetry is the design. it is why the number lives on the host rather than inside a burnable guest, and why receiving is the half this repo optimises for.
and who it will hear from is a setting, not a hope
a number that anyone can text is an agent that anyone can talk to, and an agent that is willing to be talked into things by anyone is a worse thing to own than one with no number at all. so the door has a policy, and the policy is closed until a human opens it: an unset one admits nobody, which means protection never depends on remembering to switch it on, and a broken policy file shuts the door rather than opening it.
there are three ways to open it, and they are one choice rather than four flags:
- a list. only the numbers you name get in. this is the default shape, with an empty list, and it is the right one for an agent that has a handful of people it works with.
- local. only numbers from your own country get in, decided by the dial code at the front of the number. it is the setting for an agent whose whole job is people nearby.
- chosen countries. you name the countries that are welcome and the ones that never are, and a blocked country loses to an allowed one by default so a refusal cannot be undone by a typo elsewhere.
two toggles sit on top: a listed number gets in whatever the mode says (so a country rule never locks out the person you added by hand), and a block wins over a list unless you turn that off. every change prints the sentence it now means, so a widened door is something you read rather than something you find out about.
one honest limit: a +1 number is the north american numbering plan, shared by the united states, canada and a run of caribbean nations, and the digits alone do not say which. so "local" for a +1 home admits all of it, and asking for the united states only would need an area code table this repo does not pretend to have. the same goes for who is really calling: the sender is the number the carrier reports, and a provider vouches for it, not this page.
one more edge worth knowing: texts from a brand name or a short code (a bank, a courier, a verification service) have no country, so only the open mode lets them through and every other mode refuses them under their own name rather than as a malformed number. that includes verification texts, which is the same line this page draws everywhere else about what a number of this type is for.
refused messages are never stored, but they are counted: the reason, the region and a shortened number, never the text. a policy that is too tight otherwise looks exactly like a broken webhook, and heyphony allow prints the tally so you can tell them apart.
get it
npm i -g heyphony
that is the whole install, and it works because the package is on the npm registry as heyphony@0.3.0, published on 2026-11-03. npx heyphony status does the same thing without the i -g if you would rather not install it.
or, if you don't have either git nor node, the url install is a better fit:
curl -fsSL https://raw.githubusercontent.com/tinkrland/heyphony/main/npm/install.sh | sh
it downloads the same tree and puts heyphony on your path, needing python3 and nothing else. the two routes differ in what they leave behind, not in what they can do.
if python is the tool you reach for, there is a third door onto the same code. the pypi package is built and passes twine check, and an installed wheel runs on python 3.8 and 3.11, but it is not uploaded yet, so pip install heyphony does not work today. pypi/publish.md is the runbook, and this paragraph is flipped in the same commit as the upload.
other offerings
- mcp server (in development) @
mcpbranch - rest api over https (in development)
- heyphony sdk (planned)
- hosted cloud offering (paid only, planned)
the full table, with what each route needs, is in npm/readme.md, and npm/publish.md is the runbook that got 0.3.0 onto the registry.
an agent installing this should read npm/agents.md instead of this page, because it says which four commands to run, how to speak to the mcp server instead of a shell, which two questions are for its human, and what it is not allowed to attempt.
three places it can live
the command is the same everywhere; what changes is which computer holds the registration, the secret and the catcher, and what happens to all three when that computer sleeps. there are three honest answers, and the setup guide in this repo is about the instructions for each: an agent on a local computer, where the answer depends on which computer, a computer of its own in a container or a cloud vm, and a spawnable guest from the spawnables line.
the licence, and why it is not mit
this is a source available licence, not an open source one: bsl shaped, with the permitted purposes of the functional source licence and the three hard prohibitions of the elastic licence. you can read it, run it, modify it, and ship your own agent on it, including in production. what you cannot do is take it and sell it as the thing it replaces, or strip the notices out of it.
each version converts to mit two years after it is released, and the table in LICENSE dates every version that exists. versions that are not listed have not been released.
what it will not do
there is one claim this page could make that would sell better, and it is the one it is not making: that a number from here gets your agent through a verification code. it does not, reliably, and the reason has nothing to do with the quality of the setup.
the 2fa claim, which we are not making
almost every product that hands an agent a number does the same thing this repo does: it gives you voip over sip. that number is auto blocked by a growing list of banks and social media services, and there is no path around it, because what is being detected is the number type itself.
the refusal is not a verdict on this package. it is adversarial detection aimed at sybil campaigns, which register voip numbers by the thousand, and the platforms answered that with outright prohibition rather than a risk score. the disparate impact lands on every legitimate sip number in existence, and it lands on yours here. so the page says what is true instead of what converts, and claims two things:
- we do not promise a 2fa path. where a service accepts the number, that service has not closed the door yet, and nothing in this repo is defeating a check. if a workflow needs codes, it needs a handset, and it should not be built on this.
- we do not hold numbers in a pool. there is no shared inventory here whose reputation could be tainted by somebody else's traffic. the number is bought in your name from a provider you chose, so its history is only the history it was given.
what outbound is, and what it is not
sms on this number, one message at a time. the rail sends when the gate is open (HEYPHONY_SEND=allowed) and the call says so (--send), records the message in the same thread as what came in, and refuses a list, a loop and a schedule, because a campaign is a different product with consent, attested origination and a registered business behind it.
the lookup reads a plan and never dials. that is the same split as the rest of the package at a different scale: reading is patient and cheap, and everything that touches somebody else's phone has a gate, a ceiling and a stated consequence.
three shapes ride that one rail: a single reply, a voicemail, and a small named group. all three are the same act at different volumes, which is why none of them has a queue, a retry, a schedule or a quiet-hours engine. one of them is a call, so HEYPHONY_CALL=allowed is its own gate rather than a second meaning for the text gate.
provider terms, quiet hours, and what the recipient actually agreed to are yours. a tool that respects a gate cannot also audit a business, and pretending otherwise would be the dishonest version of a safety feature.
the tool surface cannot close a gate, and cannot spend without a conversation
an mcp server is a surface an agent can call without a person watching, so the honest list of what it will not do is short and specific.
- it will not send because a tool call asked.
HEYPHONY_SEND=allowedis read from the server's own environment, so the decision is the one made by whoever started the process. a tool result that saysdraftedis a tool result, not a refusal to retry with a different argument. - it will not buy a number or point a carrier at one.
provision --purchasedoes not exist yet anywhere, andhooks --applyis not in the tool list. - it will not hold a secret. the credentials are the environment it inherits, on the machine it runs on, the same as the cli.
and nothing here publishes
no stream, no account to create, no audience to grow: a number that can be reached.
the rest is in the argument
those are not gaps waiting for a sprint. they are the limit of what a number of this type can do, and theidea/ is where each one is argued rather than listed.
and for the record, since the pages here name lanes that are not in this repo: this is the standalone package, written beside the umbrella, so a few of them point at sibling lanes (signal, email, meetings, the contact book) that live in spawnables on the comms branch. the code runs without them, what leaves this repo is the number and the rails a number unlocks, and the dependency runs one way.
Metadata
Release files for heyphony 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| heyphony-0.3.0.tar.gz | 299.5 kB | Without provenance | Details for heyphony-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| heyphony-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for heyphony-0.3.0-py3-none-any.whl |
Total release size: 604.1 kB
Release files / heyphony-0.3.0.tar.gz
| Download URL | heyphony-0.3.0.tar.gz |
|---|---|
| Size | 299.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a41a1398db7ffc6031891a8bde1c4a159a603fa0b01cef99eca968761cc2a074
|
|
BLAKE2b-256 checksum How to use checksums |
3353f403b20d0d29415664e8dcf8d569449f9497af2aab8cec8e2353c1afbf4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Release files / heyphony-0.3.0-py3-none-any.whl
| Download URL | heyphony-0.3.0-py3-none-any.whl |
|---|---|
| Size | 304.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23d4712d3dcbd6fa78ef47bd7b181ca5c95187631138bfddfbf4f5eba37ced4f
|
|
BLAKE2b-256 checksum How to use checksums |
2e0ba32246ffc27ef7ac588729d65773d5f481b854af7151b381e95a56e209ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.17
|
Security for heyphony 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.