You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SDK trial on Linux / Node 24 (vapi-network 0.17.5): search + inspect worked after one config fix — docs.search, router.models and Tasks board stayed blocked by the network guard
#148
OS: Linux (x86_64, headless server, no desktop keyring)
Node: v24.22.1 · npm: 10.9.4
Package installed: vapi-network0.17.5 (the docs still say the latest release is 0.17.0)
What worked
npm i vapi-network — clean install, one package, a few seconds.
The docs' SDK snippet compiles verbatim under tsc --strict (as an ESM .mts file). The API signatures match the docs.
Before any wallet exists, the error is clean and actionable: KeystoreError: No wallet yet. Run vapi init.
After one config fix (below): call.search("weather") returned 9 results in the documented shape, call.inspect() on a real ref returned the full listing contract, and vapi balance on the CLI read the new wallet fine (0 USDC — it was never funded).
The first thing that broke
The docs' example, pasted verbatim into a default npm project, fails before it runs: Top-level await is currently not supported with the "cjs" output format (TS1309). Nothing in the quickstart says the project needs "type": "module" — a newcomer hits this on line 1.
What else broke or confused me
Headless init fails without a keyring, and the error names the wrong command. On a server with no libsecret keyring, vapi-network init stops with: Unable to load or create the device vault key: This machine has no working keyring (the libsecret keyring). Set VAPI_VAULT_PASSWORD ... and run vapi setup again — it says "setup" while I ran "init". Setting VAPI_VAULT_PASSWORD did fix it.
The network guard blocks vAPI's own hosts on this machine, and the fix only covers half the SDK. This machine's DNS resolves public hosts to 198.18.x.x addresses (a fake-IP proxy setup), so the SDK's guard rejected api.vapinetwork.ai itself: NetworkGuardError: URL hostname "api.vapinetwork.ai" is not allowed; ... require allowPrivateNetwork true. The allowPrivateNetwork flag lives in the local config file but is never mentioned in the quickstart. With it set to true, Call search/inspect worked — but three other surfaces still failed the same way: docs.search (DocsError bad_response, caused by a NetworkGuardError for docs.vapinetwork.ai), router.models() (RouterClientError: ... api.vapinetwork.ai is not a public address.), and the Tasks example board() copied verbatim (TasksClientError, code network).
The docs' inspect("<ref>") placeholder errors instead of guiding. Verbatim, it returns DiscoveryCatalogError: No payable endpoint found for service "<ref>". And the first listing returned by search had payment: null — no quote, price, or payee, which the docs' flow leads you to expect from inspect.
There is no balance method on the SDK client. The wallet object exposes name/address/owner only; to check a balance from code I had to shell out to the CLI (vapi balance).
Where I stopped router.usage() returns RouterClientError: Not linked. Run vapi login. — linking is an owner step, so I stopped there. I did not run call.pay, router.buy, router.chat, funding, or backup; the test wallet was never funded and nothing was signed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Environment
vapi-network0.17.5 (the docs still say the latest release is 0.17.0)What worked
npm i vapi-network— clean install, one package, a few seconds.tsc --strict(as an ESM.mtsfile). The API signatures match the docs.KeystoreError: No wallet yet. Run vapi init.call.search("weather")returned 9 results in the documented shape,call.inspect()on a real ref returned the full listing contract, andvapi balanceon the CLI read the new wallet fine (0 USDC — it was never funded).The first thing that broke
The docs' example, pasted verbatim into a default npm project, fails before it runs:
Top-level await is currently not supported with the "cjs" output format(TS1309). Nothing in the quickstart says the project needs"type": "module"— a newcomer hits this on line 1.What else broke or confused me
vapi-network initstops with:Unable to load or create the device vault key: This machine has no working keyring (the libsecret keyring). Set VAPI_VAULT_PASSWORD ... and run vapi setup again— it says "setup" while I ran "init". SettingVAPI_VAULT_PASSWORDdid fix it.api.vapinetwork.aiitself:NetworkGuardError: URL hostname "api.vapinetwork.ai" is not allowed; ... require allowPrivateNetwork true. TheallowPrivateNetworkflag lives in the local config file but is never mentioned in the quickstart. With it set to true, Call search/inspect worked — but three other surfaces still failed the same way:docs.search(DocsError bad_response, caused by a NetworkGuardError for docs.vapinetwork.ai),router.models()(RouterClientError: ... api.vapinetwork.ai is not a public address.), and the Tasks exampleboard()copied verbatim (TasksClientError, codenetwork).inspect("<ref>")placeholder errors instead of guiding. Verbatim, it returnsDiscoveryCatalogError: No payable endpoint found for service "<ref>".And the first listing returned by search hadpayment: null— no quote, price, or payee, which the docs' flow leads you to expect from inspect.vapi balance).Where I stopped
router.usage()returnsRouterClientError: Not linked. Run vapi login.— linking is an owner step, so I stopped there. I did not runcall.pay,router.buy,router.chat, funding, or backup; the test wallet was never funded and nothing was signed.All reactions