Comparison
| Sovereign | Privy | Turnkey | |
|---|---|---|---|
| Key storage | Local, AES-256-GCM encrypted | Privy TEE (Trusted Execution Environment) | HSM via Turnkey API |
| External dependency | None | Privy account | Turnkey account |
| Production ready | ✓ on trusted servers | ✓ | ✓ |
| Compliance | Manual | Privy terms | Turnkey terms |
| Recovery | Your encrypted mnemonic | Privy dashboard | Turnkey dashboard |
| Best for | Dev, self-hosted, zero deps | Cloud production | Enterprise, compliance |
Sovereign
Sovereign mode is fully self-contained. No accounts, no API keys, no external services.
m/44'/501'/index'/0'), and encrypts the mnemonic with AES-256-GCM before writing it to ~/.glosso/.env.
Provision:
--index flag on CLI commands or the index parameter in SDK calls:
| Index | Conventional purpose |
|---|---|
| 0 | Primary — main identity, receives funds |
| 1 | Trading — DeFi operations, swaps |
| 2 | Vault — long-term storage |
| 3 | Burner — disposable, risky operations |
- Development and testing on devnet
- Self-hosted agents on a trusted server you control
- Scenarios where zero external dependencies matter
Privy
Privy stores your keys in a Trusted Execution Environment (TEE) — a hardware-isolated enclave where even Privy’s own engineers cannot access key material. Provision:~/.glosso/.env.
How it works:
- Production cloud deployments
- When you want key management handled by a specialized provider
- Teams that need key rotation, access controls, and audit logs from a provider
Turnkey
Turnkey provides HSM-backed (Hardware Security Module) key management with enterprise policy controls built into the infrastructure layer. Provision:- Enterprise deployments with compliance requirements
- When you need hardware-grade key security guarantees
- High-value production wallets
Turnkey integration requires a Turnkey account and API credentials. See Turnkey’s documentation for setup.
Switching Modes
Switching modes does not change your wallet address if you use the same underlying key material. Useglosso switch to activate any already-provisioned mode:
Your agent code uses
new GlossoWallet() — it reads GLOSSO_MODE from the environment and constructs the correct adapter automatically. No code changes needed when switching modes.