> For the complete documentation index, see [llms.txt](https://moni-ai.gitbook.io/moni/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moni-ai.gitbook.io/moni/moni-tg-bot/getting-started/wallet-basics/import-and-export-private-key.md).

# Import & Export Private Key

Moni never stores your private keys — wallets are managed by **Turnkey's infrastructure**, so the key only ever lives on your device.

### How to Import Private Key

{% stepper %}
{% step %}
From the main menu, tap **Wallets**, then tap **Import Wallet**.

<div align="left"><figure><img src="/files/w8XI4eC7qzHY7S7KRTuW" alt="" width="325"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
The bot prompts you for a Solana private key in **base58** format.

<div align="left"><figure><img src="/files/4j2o5TiBdDNeXft3aHL1" alt="" width="432"><figcaption></figcaption></figure></div>

{% hint style="warning" %}
Only paste a private key in a private chat with the bot. Anyone with this key controls the wallet — never share it with anyone.
{% endhint %}
{% endstep %}

{% step %}
Paste your private key into the chat.
{% endstep %}

{% step %}
{% hint style="success" %}
Once the key is accepted, the wallet appears in your wallet list, ready to use.
{% endhint %}
{% endstep %}
{% endstepper %}

***

### How to Export Private Key

{% stepper %}
{% step %}
From the main menu, tap **Wallets** and select the wallet you want to export.

<div align="left"><figure><img src="/files/7tb6T0Bihbl1qfZphLNQ" alt="" width="347"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
Tap **View Private Key**.

<div align="left"><figure><img src="/files/PQYDQA7dQgoiO8R0d6ej" alt="" width="387"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
The bot replies with the private key for that wallet.

{% hint style="warning" %}
⚠️ This key is the only way to recover your wallet outside Moni. **Save it somewhere safe** and never share it — Moni will never ask for it.
{% endhint %}
{% endstep %}

{% step %}
{% hint style="success" %}
Copy the key from the chat, store it securely, and you're done.
{% endhint %}

<div align="left"><figure><img src="/files/oyfmpmBKCIucp2w0XgvD" alt="" width="461"><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://moni-ai.gitbook.io/moni/moni-tg-bot/getting-started/wallet-basics/import-and-export-private-key.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
