Skip to content

v1.0.14 — Agents can sign you up

Choose a tag to compare

@xanojustin xanojustin released this 15 Oct 21:37
· 20 commits to main since this release

When nothing is signed in, an agent working with the SDK now asks its human whether they already have a Xano account. If not, it can get them a free one, and the human confirms by email. Every printed and documented command is also now spelled npx @xano/sdk, which works in npm, yarn, pnpm and bun projects and outside any project.

npm install @xano/sdk@1.0.14

A signed-out agent asks whether you have a Xano account

The not-signed-in error, status, the AGENTS.md that init writes and llms.txt all give the same rule: ask the human whether they already have a Xano account, and never guess from context. Yes: they run npx @xano/sdk login. No: the agent asks for their email and follows auth.md. Xano emails the human a link to confirm (with an optional password), and the agent then receives a temporary XANO_INSTANCE_URL / XANO_WORKSPACE_ID / XANO_META_TOKEN triple. On a machine where nothing has ever signed in, signup is offered first.

status reports when to offer signup

status gains agentSignup (the auth.md URL) and suggest ("signup" or "ask"). They are set only when no credential exists on the machine at all; a broken or missing named profile keeps its own fix.

An expired temporary token says when and where to sign in

A 401 under a meta token that is a JWT past its expiry now says the token expired and when. It tells the user to sign in on the server that issued it, e.g. login --origin https://app.dev.xano.com for a dev token.

Every printed command is npx @xano/sdk

npx xanosdk only reached the SDK where npx found a local xanosdk bin. It missed in bun and pnpm workspace members, and outside a project it asked the registry for an unrelated package. Printed commands, scaffolded files, the agent skill, the MCP config and the docs now say npx @xano/sdk, which resolves the project's own install from its root, a subdirectory or a workspace member. A global install prints it too, since a bare global xanosdk ignores the project's version.

The README, guides, llms.txt and the examples follow the same rule: every command is npx @xano/sdk <cmd>, and the README's deploy table maps each npm run xano:* shortcut to the command it runs.

Notes

Agentic signup currently creates accounts on the dev environment (app.dev.xano.com), and its sign-in hints carry --origin to match.