> ## Documentation Index
> Fetch the complete documentation index at: https://kimia-labs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Your money

> Who holds what, what Kimia can do, and how to take it back.

Kimia's powers over your money depend on where it sits. This page sets them out
plainly.

## At a glance

| Where | Belongs to | Kimia can | Kimia cannot |
| - | - | - | - |
| Your sign-in wallet | You | Nothing | Anything |
| Your Hyperliquid account | Your Ethereum master | Trade through the agent | Withdraw or transfer |
| Your Solana master | You | Withdraw to your sign-in wallet, when you ask in the app | Send anywhere else |
| Your Kimia vault balance | You, recorded against your Solana master in Kimia's vault program | Buy within your authorization, sell, return funds to your Solana master | Send funds anywhere else |

## The wallets

**The wallet you sign in with** is yours, from before Kimia. It sends deposits and
receives withdrawals. Kimia never holds its keys.

**Your master wallets**, one on Ethereum and one on Solana, are created for you when
you sign in, by Kimia's sign-in provider, Privy. They hold your money. They are yours:
take their keys out at any time with **Export key** in the account menu.

Because Privy holds these wallets until you export them, Kimia's app can ask them to
sign without a prompt for certain steps you start yourself, such as a withdrawal from
HyperCore.

**The agent** is an address Kimia creates and runs. Once bound, it may place orders
on your Hyperliquid account. It holds no money.

**The manager key** is a single key Kimia controls that acts inside the Kimia vault,
for all users.

## Hyperliquid: trading, not withdrawing

| The agent can | The agent cannot |
| - | - |
| Open and close positions | Withdraw funds |
| Cancel orders | Send money to another address |
| Change leverage and margin mode | Approve further permissions |
| Move USDC between your own spot and perp balances | Access your master wallets |

The worst case if the agent were misused is unwanted trading, which could lose money.
It cannot take your funds. Hyperliquid enforces the line, not Kimia.

## The Kimia vault: trading, and returning to you

Kimia spot sits in a program on Solana, recorded against your Solana master. Through its
manager key, Kimia can:

* **Buy** a token, only with your signature, within the USDC you authorized, for 30 days
* **Sell** any token you hold, back to USDC, without your signature. Kimia's servers only do this while your authorization is live and the vault is not paused, but the program itself allows it with no authorization
* **Withdraw** your USDC or tokens, but only to your own Solana master

The program refuses to send vault funds anywhere except their owner. It does not set a
minimum price on sales. So the worst case if the manager key were misused is your
vault tokens being sold at a bad price, with the proceeds still coming back to you.
See [Risks](https://kimia-labs.mintlify.site/safety/risks.md#kimia-vault-risk) and [The Kimia vault](https://kimia-labs.mintlify.site/using-kimia/kimia-vault.md).

Kimia can also upgrade the vault program, which in principle could change these
rules. Handing that power to a multisig with a time delay is planned, not done.

## What you sign

| Signature | Signed by | How often |
| - | - | - |
| Bind the Hyperliquid agent | Ethereum master | Once |
| Approve Kimia's fee | Ethereum master | Once, when the step arrives in the app |
| Kimia vault buy and authorization | Solana master | Each buy. Sometimes two on a token's first |
| Vault tab steps | Solana master | Each |
| Deposit, bridge to HyperCore | Your sign-in wallet | Each |
| Withdraw from Solana master | Your sign-in wallet, plus the Solana master without a prompt | Each |
| Withdraw or bridge from HyperCore | Ethereum master, without a prompt | Each, when you press Withdraw |

## Getting your keys

Your master wallets live with Privy until you export them. To use them anywhere
outside Kimia:

**1. Open the account menu**

Top right. On a phone: Settings, then My Profile, then the **⋯** button.

**2. Export the wallet you need**

On a computer, press **Export key**. On a phone, **Export Ethereum key** or
**Export Solana key**, where the wallets are called Ethereum wallet and Solana
wallet.
**Ethereum master** for Hyperliquid, **Solana master** for your vault. Privy shows
the key in its own secure window.

**3. Import it into a wallet you control**

MetaMask for the Ethereum master, Phantom or Solflare for the Solana master. Keep
the key private. Anyone with it controls the wallet.

Do this before you need it. It is your route to your money if Kimia is ever
unavailable.

## Taking permissions back

**Hyperliquid agent.** Revoke it at Hyperliquid, where approved agents are listed,
connected with your exported Ethereum master. Takes effect immediately. Open
positions stay open, and you manage them at Hyperliquid.

**Vault authorizations.** On the **Vault** tab, press **Revoke** on a token. On-chain,
this stops Kimia buying that token. Kimia's servers also stop selling it, by policy,
so a pair holding that token will not be closed by Kimia until you reauthorize or
withdraw the token yourself. The program itself still lets the manager key sell it
back to USDC.

**Vault funds.** **Withdraw** and **Withdraw as** a token on the Vault tab return
funds to your Solana master. The vault program lets you do this even if Kimia pauses
the vault.

## If something looks wrong

Trades you did not start, or a position you do not recognise, warrant acting first
and asking afterwards.

**1. Export your master wallet keys**

See above.

**2. Revoke the Hyperliquid agent and your vault authorizations**

This stops further Hyperliquid trading and vault buys immediately.

**3. Close positions at Hyperliquid and withdraw vault tokens**

You do not need Kimia for either. Withdrawing tokens out of the vault is the only
way to put them fully beyond the manager key.

**4. Withdraw**

Your master wallets keep full control throughout.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.