Swivy Developer Docs

Build with Swivy.

Set up authentication, connect your app, and work with users and wallets. Start with a quickstart or jump to the API reference.

Start here

From a new account to a tested app.

  1. Create a project. Name your app, choose wallet types and test networks, then enable email or SMS login. Review your choices before saving.
  2. Secure your console account. Add a passkey in Account security. Protected settings require passkey approval, even if you skip enrollment during setup.
  3. Connect your app. Open Integrations for examples configured for your project. Copy the App ID and publishable key; store secret keys only on your server.
  4. Configure delivery. Set up email delivery or your SMS provider for the login methods you enabled. Console sign-in delivery and customer login are separate flows.
  5. Test as a customer. In Authentication, request a code, verify it, and create a wallet on an enabled test network. Confirm the identity and wallet appear in Users and Wallets.

Before launch, verify allowed origins and redirects, session and wallet policies, RPC connectivity, delivery, and recovery. Review audit events after protected actions. Use the API reference below for request schemas and errors.

If setup gets stuck.

No security-key prompt: use a browser with WebAuthn support such as Chrome or Safari, open the console directly over HTTPS, and select Add passkey in Account security. Choose your preferred passkey provider. For a YubiKey, insert it and complete its PIN/touch prompt. Cancelling leaves enrollment incomplete.

Existing key not found: passkeys are tied to the site where they were registered. A key created on another console domain may not work here. Sign in by email, then enroll it on the current console.

No customer code: confirm that the login method and delivery provider are configured for the selected environment. Check provider delivery and spam folders before retrying.

Project creation failed: read the error in the setup dialog. Check Overview before retrying after a network interruption; a project may have been created before the response was lost.

Preview limits: staging is for testnets and test assets. Software custody is not production TEE custody. Successful setup does not certify production readiness.

SDK 1.0.1

Connect your frontend and backend.

Create a project in the console and open API keys. Use the App ID and publishable key in your frontend. Keep the secret key on your server.

npm install @swivy/web@1.0.1 @swivy/node@1.0.1
# React applications
npm install @swivy/react@1.0.1
# Optional integrations
npm install @swivy/expo@1.0.1 @swivy/viem@1.0.1

The six public SDK packages—core, web, react, expo, node, and viem—share version 1.0.1. Use Node 22 for server integrations. Open Integrations in your app for configured examples.

Authentication

Choose how your customers sign in.

Developers choose whether email-code and SMS login are enabled for their app. Hosted customer login follows those settings. Configure delivery before testing a method.

Your console account is separate: add your own passkey under Account security. Customer authentication is the app-user test flow.

Testnet preview: use test assets in staging. Staging currently uses software custody. A managed-wallet API or SDK type does not establish production TEE custody or production readiness.

MCP · testnet preview

Create and list your wallets from an AI client.

An operator first registers the client with exact callback URLs, S256 PKCE, and openid wallets.read wallets.create scopes. The user signs in with an enabled email/SMS method and approves the displayed permissions.

The hosted resource is RESOURCE_ORIGIN/mcp; its issuer is RESOURCE_ORIGIN/oidc/APP_ID. Public dynamic client registration is not available.

Scoped self-service tools

swivy_list_wallets {}
swivy_create_wallet { "chain": "evm" }
swivy_create_wallet { "chain": "solana" }

Create requires wallets.create and app policy permitting managed accounts, managed custody, and the selected agent chain. It creates or reuses your wallet and returns public details.

This connection cannot sign, transfer, export keys, or create delegation grants. Provisioned signing connections use separately approved limits. Production custody remains a separate release gate.

Delegated execution

Set explicit execution limits.

Hardened servers require rules.evm.maxExecutionGasCostWei for standing EVM grants; finite grants may opt in. SDK 1.0.1 exposes the field as an optional decimal string, so TypeScript alone does not validate standing grants.

The optional cumulativeEvmComponents profile uses mode encoded_native_components_v1, chain ID 1 or 11155111, and separate maxValueWei and maxExecutionGasCostWei caps. Use Ethereum Sepolia in staging.

Before using cumulative scopes, confirm both API and worker support schema 21 and verify the returned scope retains your requested caps. Installing a new SDK does not upgrade server enforcement.

Know what the limits cover

The cumulative profile requires explicitly signed sponsorshipRequested: false, matching Ethereum/Sepolia network and chain, empty calldata 0x, explicit value, and supported type 0/1/2 gas fields. It caps gross encoded native value and maximum execution gas cost.

It does not cover USD value, total wallet loss, tokens, approvals, L2 fees, sponsor costs, blob transactions, authorization lists, or recipient fallback effects. Allowlisted recipients remain trusted.

Reservations are never automatically refunded, including failed signing or ambiguous broadcasts. A null usage value is unavailable or inconsistent, not zero usage.

The worker rechecks current environment policy and delegated authority before signing queued work. Denials do not refund capacity; already-issued signatures cannot be recalled, and this is not an atomic guarantee against a concurrent policy change.