> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://accounts.tempo.xyz/api/mcp` to find what you need.

# Turnkey Adapter

The Turnkey adapter is for apps that want Turnkey to own key custody and authentication while plugging into Tempo account features. Your app keeps the login or sign-up UX (passkey prompts, OTP, etc.); the adapter handles silent reconnect, session expiry, and provider signing.

Use it when you want:

* Turnkey to own key custody and policy.
* Passkey or other Turnkey-supported authentication on your own organization.
* Tempo account features without managing your own signer infrastructure.

## Usage

```tsx
import { TurnkeyClient, generateWalletAccountsFromAddressFormat } from '@turnkey/core'
import { Provider, turnkey } from 'accounts'

const provider = Provider.create({
  adapter: turnkey({
    client: new TurnkeyClient({ organizationId, authProxyConfigId }),
    createAccount: async ({ client, parameters }) => {
      await client.signUpWithPasskey({
        passkeyDisplayName: parameters.name,
        createSubOrgParams: {
          userName: parameters.name,
          customWallet: {
            walletName: 'FooBar',
            walletAccounts: generateWalletAccountsFromAddressFormat({
              addresses: ['ADDRESS_FORMAT_ETHEREUM'],
            }),
          },
        },
      })
    },
    loadAccounts: async ({ client }) => {
      await client.loginWithPasskey()
    },
  }),
})
```

## Human Pass Needed

This page should be expanded with sub-org setup, session lifetime guidance, recovery flows, and production policy expectations.

## Next Steps

[turnkey reference](/docs/api/turnkey): Full API reference for the turnkey adapter, including client and account loading hooks.
