Stellar embedded wallet
A device-native, self-custodial embedded wallet for Stellar, one of the embedded wallets you can ship with an embedded wallet SDK. The signing key is created and used on the user's device. Cavos cannot see it, cannot sign with it, and cannot move funds. Available via @cavos/kit for web and @cavos/kit/react-native for mobile, a work in progress (Expo Development Builds, EAS, or bare React Native; Expo Go is not supported).
The G… is HKDF of the same MasterDEK as Solana. In the browser that Ed25519 control key is a non-extractable WebCrypto key held by the Cavos vault. React Native is a work in progress and not on this path yet. The SDK does not enforce non-extractability on Node or other server runtimes.
Stellar embedded wallet in November 2026
A Stellar embedded wallet is a classic G account inside your application. Login selects the user. @cavos/kit looks up or claims the address. The spend key is one Ed25519 key, derived on the device. Exchanges and existing tools already understand the address. Setup is minutes. Free up to 1,000 wallets. Hardware-isolated, non-custodial. Gas Sponsorship in Any Token means the user does not need XLM to start. Freighter remains the usual extension wallet a crypto-native user already holds; it is not this product model.
| Question | Freighter | Stellar embedded wallet |
|---|---|---|
| Who creates the account | The user, in an extension | The product, from a login the user already has |
| Where approval happens | A wallet popup the app does not control | In the product UI |
| Typical audience | People who already hold a Stellar wallet | People who should never see a wallet picker |
Evaluate a Stellar embedded wallet
This page is for teams that need a Stellar embedded wallet inside the product, a classic G… the rest of the ecosystem already understands, not a Soroban contract account and not a Freighter connect flow. Login selects the user. @cavos/kit looks up (userId, appId, chain, network) in the registry and returns that address, or claims a new one. The first device to register wins. Signing is local. Cavos cannot see the key, cannot sign with it, and cannot move funds.
Authentication is separate from signing. Hosted login is Google, Apple, or an enclave-verified 9-character email code the recovery enclave mails and verifies. If you already authenticate users, pass a stable userId. Use an immutable primary key, not an email that can change. Email sign-in is not available on React Native yet; use Google or Apple there. The address is available before the account exists on-chain. Share it, fund it, then execute.
How the Stellar account signs
Cavos provisions a classic G… Stellar account, not a Soroban contract. It is the same address format that wallets, exchanges, and every Stellar tool already understand. That G… is one Ed25519 spend key, HKDF of the MasterDEK (cavos-ed25519-stellar-v1, salted by appSalt). A new device restores the MasterDEK and derives the same key. Changing appSalt derives a different address that will not match the registry row.
Connect never creates the account. An undeployed wallet already has a G… from the registry; the first execute creates the account (sponsored, 0 XLM cost to the user) and runs the operation. After that, status is ready. execute(amount, destination) moves amount stroops of native XLM (1 XLM = 10,000,000 stroops). wallet.balance() returns that native balance. signMessage works while undeployed. An App ID activates the gasless relayer.
Gas Sponsorship in Any Token
Gas Sponsorship in Any Token means the user can pay fees and reserves in any token they hold; USDC is one example. Every Stellar account locks XLM reserves (a base reserve plus about 0.5 XLM per subentry). With the relayer, those reserves and all fees are sponsored, so the user locks no XLM. The relayer is only a fee payer and reserve sponsor, never a custodian or identity authority. A bad or absent relayer can cost fees; it cannot move funds or squat an address. Pass { sponsored: false } to submit directly from the account's own XLM. Without an App ID, a funded stellarSourceKeypair can fund reserves and pay fees.
Because the control key is a real Stellar signer, the same G… can invoke Soroban contracts and satisfy require_auth. invokeContract simulates the call, re-signs only this account's auth entry, and submits it, sponsored by default. invokeContract and addTrustline require status === "ready"; call create() first if the account does not exist yet. The relayer sponsors the account's reserves, including each trustline, so users hold no XLM. signXdr signs an unsigned envelope without submitting it. The kit also ships deployEscrow and TrustlessWorkEscrow for milestone escrows. Paying reserves in a held token (USDC, not sponsored XLM) is a separate package, @cavos/reserve, signed with wallet.signXdr.
Recovery on a new device
There is one spend key. After login, call enrollPasskeyDefault(). Signing up never prompts. The passkey stores an encrypted copy of the MasterDEK; it is not 2FA. Anyone with that synced passkey can open the wallet. Hardware-isolated recovery, opt-in per environment, unwraps the same DEK when the user signs in again with Google, Apple, or an enclave-verified email code. Restore paths are another signed-in device, a passkey, and that opt-in enclave. If every device and every restore factor is gone, Cavos cannot recover the wallet.
Install
Create an app in the Cavos dashboard and copy its App ID. Register callback URLs exactly. Never change appSalt after users exist. The React walkthrough lives in How to add an embedded wallet. The Stellar-only path (social login, the G… before create, and the first sponsored execute) is in How to add an embedded Stellar wallet. The method-level surface is the embedded wallet API. Platform parts and pricing models are in wallet-as-a-service. For a side-by-side of other providers, see the best embedded wallets for Stellar.
npm install @cavos/kitConnect and execute
Use Cavos.connect with chains: ["stellar"]. network: "testnet" resolves to stellar-testnet. execute works when status is "undeployed" or "ready". Narrow on wallet.chain === "stellar". In React, call wallet.execute on the Stellar handle; the context execute is Starknet-only.
import { Cavos } from "@cavos/kit";
const session = await Cavos.connect({
chains: ["stellar"],
defaultChain: "stellar",
network: "mainnet",
identity: { userId: user.id, email: user.email },
appSalt: "my-app",
appId: process.env.NEXT_PUBLIC_CAVOS_APP_ID,
});
const wallet = session.wallet("stellar");
const hash = await wallet.execute(
10_000_000n, // 1 XLM in stroops
"GDESTINATION...ADDRESS",
);For UI apps, the same package exports the provider. Pass identity if you already authenticate users; Cavos login then turns off. Hosted login is Google, Apple, or sendOtp / verifyOtp.
import { CavosProvider } from "@cavos/kit/react";
export function Providers({ children }) {
return (
<CavosProvider
config={{
chains: ["solana", "stellar", "starknet"],
defaultChain: "solana",
network: "testnet",
appSalt: "my-app",
appId: process.env.NEXT_PUBLIC_CAVOS_APP_ID,
paymasterApiKey: process.env.NEXT_PUBLIC_CAVOS_PAYMASTER_API_KEY,
}}
modal={{ appName: "My App" }}
>
{children}
</CavosProvider>
);
}What is shared, what is Stellar-only
Login, registry lookup, the MasterDEK, passkey and enclave restore, and the kit packages are shared with the Starknet embedded wallet and the Solana embedded wallet. One Cavos.connect can configure all three. Each chain still has its own address.
Stellar-only: the classic G…, stroop execute, reserve sponsorship, invokeContract, trustlines, and signXdr. If you are still choosing a provider, the compare pages and Privy alternatives, Turnkey alternatives, Dynamic alternatives, and Magic alternatives state when another product is the better fit. Pricing publishes the free 1,000 wallet creates and paid recovery options.
What you get
Self-custodial
Cavos never holds a key that can move user funds. One Ed25519 spend key, derived from the MasterDEK, controls the classic G… account.
Classic G… address
Standard Stellar address format compatible with exchanges, wallets, and ecosystem tools. Not a Soroban contract.
Gas Sponsorship in Any Token
Pay fees and reserves in any token the user holds; USDC is one example. The relayer can also sponsor XLM reserves and fees when an App ID is set.
Soroban support
The account can invoke Soroban contracts and satisfy require_auth for on-chain apps. Trustlines and Trustless Work wrappers ship in the kit.
Passkey and enclave restore
A synced passkey stores an encrypted copy of the MasterDEK. Opt-in enclave sign-in unwraps the same DEK on a new device.
Lazy deploy
Connect derives the address immediately. The on-chain account is created on first execute, atomically.
Frequently asked
What is a Stellar embedded wallet?
A Stellar embedded wallet is a classic G… Stellar account provisioned inside your application. The spend key is one Ed25519 key, HKDF of the same MasterDEK as Solana (`cavos-ed25519-stellar-v1`, salted by appSalt). It is not a Soroban contract, so exchanges and existing tools already understand the address.
How does Gas Sponsorship in Any Token work on Stellar?
Gas Sponsorship in Any Token means users can pay fees and reserves in any token they hold; USDC is one example, via @cavos/reserve. When an App ID is set, the Cavos relayer is the transaction source and fee payer and sponsors the account’s XLM reserves, so the user does not need to hold lumens to start. Pass { sponsored: false } to have the account pay its own fee. The relayer cannot move funds or squat an address.
How do I add a Stellar embedded wallet with @cavos/kit?
Install @cavos/kit, create an app in the Cavos dashboard, and pass the App ID into Cavos.connect or CavosProvider with chains: ["stellar"]. Narrow on wallet.chain === "stellar", then call create() to create the sponsored account and execute(amount, destination) in stroops once it holds XLM. Connect never creates the account.
Can a Stellar embedded wallet invoke Soroban contracts?
Yes. invokeContract simulates the call, re-signs this account’s Soroban auth entry with the control key, and submits it. The G… can satisfy require_auth in on-chain apps. invokeContract and addTrustline require a deployed account (status ready). Native XLM transfers can create the account on first execute.
How long does it take to add a Stellar embedded wallet?
Setup is minutes: npm install @cavos/kit, create an app for an App ID, call Cavos.connect with chains: ["stellar"], then create(). Connect never creates the Horizon account; create() does, sponsored, starting at 0 XLM. Free up to 1,000 wallets. Hardware-isolated, non-custodial.
Start building on Stellar.
Follow the quickstart to reach a sponsored transaction.