> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lpmimic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI access

> Connect Claude, ChatGPT, Claude Code, Codex or Cursor to your LP-Mimic account. Ask an AI about your positions, copies and results, or let it act on them with Read and trade.

**AI access** connects an AI app to one of your LP-Mimic wallets. Then you ask in plain words, for example "How are my copies doing over the last 30 days?", and the app answers from your account. With **Read and trade**, the app can also act on your positions and copies when you ask it to.

The app connects to the LP-Mimic MCP server at `https://mcp.lpmimic.com/mcp`. MCP (Model Context Protocol) is the standard way for an AI app to use outside tools.

## Choose the access

Each token or connection has one of two access levels. **Read only** is picked first. You cannot change the access later. To change it, make a new token or connect again.

| Access | What the AI app can do |
| - | - |
| **Read only** | Read your balances, positions, results and copy settings. It changes nothing. |
| **Read and trade** | Also open, close and increase positions, claim and reinvest fees, set a stop loss and a take profit, and change your copies. There is no amount limit. It never withdraws. |

> [!WARNING]
>
> With **Read and trade**, the actions are real. An action on a position spends the SOL in your wallet and sends transactions on chain. A transaction on chain cannot be undone. Choose **Read and trade** only if you want the app to act for you. Read [What the AI can do with Read and trade](#what-the-ai-can-do-with-read-and-trade).

## Before you start

* **An app.** The console gives the steps for two groups of apps:
  * **Chat apps**: **Claude** (web, desktop and phone) and **ChatGPT**. You sign in on an LP-Mimic page. There is no token to copy. Both need a paid plan of the app.
  * **Coding apps**: **Claude Code**, **Codex** and **Cursor**, or **Other app** for any app that can add an MCP server over HTTP. The console makes a token that you paste into the app.
* **AI access for your account.** AI access is in beta. The **AI access** tab shows in **Settings** only when AI access is on for the wallet that you have open. If you do not see the tab, ask [support](https://docs.lpmimic.com/help/support.md) to turn it on.
* **The right wallet.** A token or connection works with one wallet only. If you have more than one wallet, switch to the one you want in the wallet menu first.

## Connect a chat app

1. In the console header, press **Settings** (the gear button).
2. Open the **AI access** tab.
3. Press **Connect an AI app**.
4. Under **Chat apps**, pick **Claude** or **ChatGPT**.
5. **Copy this URL**: press **Copy** beside the LP Mimic connection URL.
6. Add the address to your app:
   * **Claude**: on claude.ai, open **Settings › Connectors** and press **Add custom connector**. Name it LP Mimic and paste the address. The button **Open Claude connectors** opens that page.
   * **ChatGPT**: open **Settings › Apps & Connectors › Advanced** and turn on **Developer mode**. Then create a connector named LP Mimic with this address. Choose **OAuth** as its sign-in, so that an LP-Mimic page opens to approve it.
7. In your app, press **Connect**. An LP-Mimic page opens.
8. On that page, check the app's name and the line "Access goes to …". It must name the app that you use, for example claude.ai or chatgpt.com.
9. Check **Account**. It is the wallet that the connection will use. To connect another wallet, switch to it in the console header first.
10. Choose **Access**. If the app asks for trade access, you can pick **Read only** or **Read and trade**. Otherwise the page offers **Read only**.
11. Choose **Expires**: **7 days**, **30 days** (the default), **60 days** or **90 days**. The line under it says the day the connection stops working.
12. Press **Allow**. To refuse, press **Deny**.

The app is connected. It shows on the **AI access** tab as a row with the mark **Connected app**.

## Connect a coding app

### Make a token

1. In the console header, press **Settings** (the gear button).
2. Open the **AI access** tab.
3. Press **Connect an AI app**.
4. Under **Coding apps**, pick **Claude Code**, **Codex**, **Cursor** or **Other app**.
5. In **Name and expiry**, check the fields:
   * **Name**: the app's name is already filled in. The name shows in your list, so you can tell which app uses which token. Use at most 60 characters.
   * **Expires**: **7 days**, **30 days** (the default), **60 days** or **90 days**. The line under it says the day the token stops working.
   * **Access**: **Read only** or **Read and trade**. **Read and trade** shows a warning: "Anyone with a Read and trade token can act on your positions and copies until you revoke it."
   * **Account**: the wallet that the token will use.
6. Press **Make token**.

The dialog shows **Token made**, the name, the access and the last day. Under it is the text for your app, with the token already in it. Press **Copy** to copy the text.

> [!WARNING]
>
> This token is shown once. The console does not keep a copy, and you cannot see it again later. If you lose it, revoke it and make a new one.

### Connect your app

Use the text that you copied from the dialog. The examples below show where the token goes as `lpm_…`. Do not type the token by hand.

> [tab] Claude Code
>
> 1. Run the copied command in a terminal:
>
>    ```bash theme={null}
>    claude mcp add --scope user --transport http lpmimic https://mcp.lpmimic.com/mcp \
>      --header "Authorization: Bearer lpm_…"
>    ```
>
>    The command adds LP-Mimic for all your folders.
> 2. Open a new Claude Code session.
> 3. Ask "What's in my LP Mimic account?"
>
> Added lpmimic before? Remove it first, then run the new command:
>
> ```bash theme={null}
> claude mcp remove lpmimic
> ```

> [tab] Codex
>
> 1. Open `~/.codex/config.toml` and add the copied text:
>
>    ```toml theme={null}
>    [mcp_servers.lpmimic]
>    url = "https://mcp.lpmimic.com/mcp"
>    http_headers = { Authorization = "Bearer lpm_…" }
>    ```
> 2. Save the file and restart Codex.
> 3. Ask "What's in my LP Mimic account?"
>
> Already have `[mcp_servers.lpmimic]` in `config.toml`? Replace that block. Do not add a second one.

> [tab] Cursor
>
> 1. Open `~/.cursor/mcp.json` and add the copied text:
>
>    ```json theme={null}
>    { "mcpServers": { "lpmimic": { "url": "https://mcp.lpmimic.com/mcp", "headers": { "Authorization": "Bearer lpm_…" } } } }
>    ```
> 2. Save the file and restart Cursor.
> 3. Check that lpmimic is on in Cursor's MCP settings.
> 4. Ask "What's in my LP Mimic account?"
>
> Already have `mcp.json`? Put the lpmimic entry inside its `mcpServers`, or replace an old lpmimic entry.

> [tab] Other app
>
> 1. In your app, add an MCP server (how an AI app connects to a tool) over HTTP, with the URL and the header that you copied:
>
>    ```text theme={null}
>    URL: https://mcp.lpmimic.com/mcp
>    Header: Authorization: Bearer lpm_…
>    ```
> 2. Ask your app "What's in my LP Mimic account?"
>
> Added lpmimic before? Replace its header with the new one.

When the app answers with your wallet and its positions, the connection works. Press **Done** to close the dialog. The new token shows in the list on the **AI access** tab.

## Try it

Ask your questions in plain words. Some examples:

* "What's in my LP Mimic account?"
* "How are my copies doing over the last 30 days?"
* "Which wallets made money for me this month, and which lost money?"
* "Which of my open positions are out of range?"
* "Why did my last copy of this wallet not open?"
* "What did my positions closed this week make or lose?"
* "When did I last change the copy settings of this wallet?"

With **Read and trade**, you can also ask for an action, for example:

* "Claim the fees of my biggest open position."
* "Set a 10 % stop loss on this position."
* "Lower the copy percentage of this wallet to 20 %."

The app gives you a link to the console for each position, wallet or copy that it talks about.

### Built-in prompts

LP-Mimic also gives your app two ready questions. Apps that show MCP prompts list them by these names:

| Prompt | What it asks |
| - | - |
| **How are my copies doing** | The result of your copies over the last 30 days, for each wallet you copy, and the profit or loss of the copies open now. |
| **Lessons from my worst positions** | What your five worst positions closed in the last 30 days have in common: wallet, pool, hold time, range and exit reason. |

## What the AI can read

With either access, the AI reads the wallet that the token or connection was made for, and nothing else. It cannot see your other wallets or other users' accounts.

| Tool | What it answers |
| - | - |
| **Account** (`get_account`) | The wallet, whether copying is on or stopped, how many positions are open, how much SOL is in them, account alerts, and whether the LP-Mimic bot is working. The app reads this first. |
| **Balances** (`get_balances`) | The wallet's SOL and token balances, your net deposits and deposits on their way. |
| **Portfolio** (`get_portfolio`) | What the wallet is worth, your total profit (worth less net deposits), each open position with its open profit or loss, and the closed result day by day. You choose the number of days, 30 by default. |
| **Positions** (`list_positions`) | Your open or closed positions, with fees, range, exit reason and, for closed ones, the result. A copy names the wallet it copies. The app can ask for positions closed after a date, and read older ones page by page. |
| **One position** (`get_position`) | One position in detail: its deposits, claims, withdrawals, range and log. It does not show the position's stop loss and take profit. |
| **Copied wallets** (`list_copy_targets`) | The wallets you copy, with their copy settings now, the results of their copies, and your **Loss limit** for all copies. With a number of days, it also gives each wallet's result for that period: closed copies, net result, wins, losses and win rate. It also says when the wallet was added or its copy settings last changed. |
| **Copy log** (`get_copy_log`) | Why each copy opened, was not opened, failed or closed, newest first, as on **Activity**. The app can ask for changes after a date, or for the steps of one copy. |
| **One pool** (`get_pool`) | One Meteora DLMM pool from Meteora's public data: its two tokens, price, bin step, fees, liquidity (TVL) and the last 24 hours of volume and fees. It says if LP-Mimic cannot open a position in the pool. |
| **Request status** (`get_request_status`) | What became of an action that the app asked for: a claim, an add, a stop loss and take profit, a copy by hand or an open. It also shows the stop loss and take profit in force on a position. |

Some points about the figures:

* Results come from LP-Mimic's own records. LP-Mimic tells the app to quote them, not to work them out again from transactions.
* Open positions are valued about every 2 minutes. So two answers a short time apart can differ a little.
* A copy setting that the AI reads is its value now. Read [Copy settings](https://docs.lpmimic.com/copy-trading/copy-settings.md) for when a change reaches an open copy.
* Wallet labels, pool names and token names can be written by other people. LP-Mimic tells the app to treat them as data, never as instructions.

## What the AI can do with Read and trade

A token or connection with **Read and trade** gets these tools too. A **Read only** token does not see them.

### Positions

| Tool | What it does |
| - | - |
| **Open position** (`open_position`) | Opens a new position in a Meteora DLMM pool that is quoted in SOL, with SOL from your wallet. You give the amount (at least 0.001 SOL), the price range and the shape (**spot**, **curve** or **bidAsk**). With no range, the range is 70 bins around the current price. The swap slippage is 5 % unless you give another value. |
| **Close position** (`close_position`) | Closes one open position: takes out all its liquidity and claims its fees. Then it sells the token for SOL, or keeps both tokens if you ask. |
| **Claim fees** (`claim_fees`) | Claims the unclaimed fees of one position to your wallet. |
| **Reinvest fees** (`compound_fees`) | Claims the fees of one position and adds them back into it, like **Reinvest fees** in the console. Only for a position at most 70 bins wide. |
| **Increase** (`increase_position`) | Adds to one open position a percent of the money put in it, from 1 % to 1000 % (100 % doubles it). The SOL comes from your wallet. |
| **Increase by amounts** (`deposit_amounts`) | Puts tokens that your wallet already holds into one open position, with no swap. Only the free part of your balance can go in. It works like **Amounts** in the console's **Increase** dialog. |
| **Set stop loss and take profit** (`set_tp_sl`) | Sets or removes the stop loss and the take profit of one copy, one position opened outside LP-Mimic or one position opened through LP-Mimic. It works like **Stop loss and take profit** in the console. |
| **Cancel open**, **Cancel close**, **Cancel claim**, **Cancel add** (`cancel_open`, `cancel_close`, `cancel_claim`, `cancel_add`) | Takes back an open, close, claim, compound or add that LP-Mimic has not started yet. A close because the source closed its position cannot be cancelled. |

A position that the AI opens shows on **Portfolio** as **Manual**. It follows no wallet. LP-Mimic acts on it only when you close it, claim or add, or when a stop you set is reached.

Before an open, LP-Mimic tells the app to read the pool and to tell you the pool, its liquidity, the amount, the range, the shape and the slippage. If the range needs a new bin array, the open is refused until you accept that rent. The app must tell you the rent and get your yes first. Bin array rent does not come back. Read [Fees](https://docs.lpmimic.com/fees.md).

### Copies

| Tool | What it does |
| - | - |
| **Add copy wallet** (`add_copy_wallet`) | Adds a wallet to your copy list. The wallet is only watched: its **Copying** switch stays off until the app or you turn it on. It starts with **Meme protection** on and your account's copy filters. |
| **Update copy wallet** (`update_copy_wallet`) | Changes one wallet's **Copying** switch, **Copy percentage** (0 to 100 %), **Max per copy** (it can also remove it), name, and **Pause copying after a loss of**. The loss limit can only be set for the first time or lowered. |
| **Remove copy wallet** (`remove_copy_wallet`) | Archives a wallet. It is refused while the wallet has open copies. Only you can restore the wallet, in the console. |
| **Stop all copying** (`stop_all_copying`) | Turns off copying for every wallet, like **Stop copying all**. Open copies stay open and close when their source closes them. Only you can turn the wallets on again, in the console. |
| **Set loss limit for all copies** (`set_copy_guard`) | Turns on your **Loss limit** for all copies, or sets a first or lower limit. |
| **Copy position** (`copy_position_now`) | Copies one position that a wallet you copy holds now, as [Copy one position by hand](https://docs.lpmimic.com/copy-trading/how-a-copy-works.md#copy-one-position-by-hand) does. The wallet's **Copying** switch must be on. **Meme protection** and the check of the source position's age do not apply to it. The wallet's copy filters still apply. |

A new copy setting is saved at once. It does not resize an open copy at once. Read [Copy settings](https://docs.lpmimic.com/copy-trading/copy-settings.md).

### What the AI cannot do

* Withdraw, or send funds to another wallet. No tool sends funds out of your wallet.
* Export your private key, or change your login.
* Turn on a wallet that a loss limit or **Stop copying all** paused. Only you can, in the console.
* Raise or remove a loss limit, turn off the **Loss limit** for all copies, or reset its count. Only you can, in the console.
* Change **Meme protection**, the copy filters, **Max open in total**, a wallet's own stop loss and take profit, **Keep tokens after close**, or your account settings. Only you can, in the console.
* Restore an archived wallet.

The AI can add a new wallet and turn its copying on, also after a stop.

### How an action works

* **Your yes first.** LP-Mimic tells the app to say what it will do (pool, amount, wallet, percent) and to wait for your yes before each action. LP-Mimic cannot check that the app does this. LP-Mimic marks each action tool as one that changes your account, so apps that ask before such a tool can ask you. Keep that question on in your app.
* **No undo.** An action on a position sends real transactions on chain. A transaction on chain cannot be undone.
* **No amount limit.** An open, an increase or a copy by hand can use all the free SOL in your wallet. No SOL is kept back for copies. So a large action can leave your next copies short of SOL.
* **Accepted, then done.** An open, close, claim, compound, increase, deposit, stop loss and take profit, or copy by hand is first accepted. LP-Mimic then does it. The app checks the result later with **Request status** or the position. A change to a copy setting, to the **Loss limit** or to the copy list is done at once.
* **Each action is recorded.** LP-Mimic records each action before it runs. If it cannot record it, it does nothing. Your last actions show under the token on the **AI access** tab. Read [Your tokens and connections](#your-tokens-and-connections).

## Limits

* **60 requests a minute** and **3 000 requests a day** (UTC day) for each account. All tokens and connections of the account share these limits.
* **10 actions a minute** and **200 actions a day** (UTC day) for each account, inside the request limits. **Stop all copying** and the cancel tools do not count.
* **One pool** reads are limited to 30 a minute.
* One question can use more than one request. LP-Mimic asks the app to read one tool at a time, and not to ask again and again in a loop.
* At a limit, the app gets a message to wait. At the action limit, the message is "Action limit reached: 10 a minute, 200 a day."

## Your tokens and connections

The **AI access** tab lists the tokens and connections of the wallet that you have open, under **Tokens and connections**, live ones first. A token shows the name you gave it. A connection shows the app's name. Under the name is one line, for example "Read and trade · Expires Dec 20, 2026 · Used 2h ago". A connection's line starts with **Connected app**.

| The line says | Meaning |
| - | - |
| **Read only** or **Read and trade** | The access of the token or connection. |
| **Expires** and a day | It works until that day. |
| **Never used** | No app has used it yet. |
| **Used** … **ago** | When an app last used it. |
| **Revoked** | You revoked it. It does not work. |
| **Expired** | It reached its last day. It does not work. |
| **Unused for 30 days** | No app used it for 30 days, so it stopped working. |

A token or connection that does not work any more shows greyed out and has no **Revoke** button. It cannot be turned on again. Make a new one, or connect the app again.

Your login can hold at most 10 live tokens and connections, for all your wallets together. At the limit, the console says "You have 10 live tokens. Revoke one first."

### The actions of a token

If an AI app took actions with a token or connection, its row shows **Show actions** and the number of actions. Press it to see the last 20 actions, newest first. Each line gives the time, the action, the position or wallet, and the result:

* **Accepted**: LP-Mimic took the action.
* **Refused**, with a short reason, for example "Refused: over the action limit": LP-Mimic refused the action. Nothing was done. Point at the line to see the error code.
* **Unknown**: the result was not recorded. The action may or may not have run. Check the position on **Portfolio**.

The list shows the actions of the last 90 days only.

### Revoke a token or connection

1. Open **Settings**, then the **AI access** tab.
2. Find the token or connection by its name.
3. Press **Revoke**.

It stops working within a minute. After that, the app can no longer read your account or act on it. Revoking does not undo an action that already ran.

## Keep your token safe

Anyone who has your token can use it until it stops working. What they can do depends on the access:

* **Read only**: they can read your balances, positions, results and copy settings.
* **Read and trade**: they can also act on your wallet. They can open positions in pools quoted in SOL with all the free SOL in your wallet, increase or close your positions, and sell their tokens. They can add any wallet to your copy list, turn copying on, set its copy percentage up to 100 % and remove **Max per copy**. These actions can lose your money, for example in a pool with little liquidity. They cannot withdraw, send funds to another wallet, or export your private key.

Keep your token safe:

* Do not share the token. Do not paste it into a chat, an email, a support message or a screenshot. Put it only into your app's command or config file.
* Choose **Read only** unless you want the app to act for you.
* If the token leaks, revoke it at once on the **AI access** tab, then make a new one. Then check your positions and copy list on **Portfolio** and **Copy LP**, and the token's actions on the **AI access** tab.
* Pick the shortest **Expires** that suits you. A token stops working on its last day, and after 30 days with no use.
* Revoke the token or connection of an app that you no longer use.

A chat app connection has no token for you to copy. The app keeps the sign-in. Revoke the connection on the **AI access** tab if you no longer trust the app or the account where you added it.

## Troubleshooting

> [accordion] The coding app cannot connect, or says "This token is missing or no longer works"
>
> LP-Mimic refused the token when the app connected (error 401). The message is "This token is missing or no longer works. Make a new one in Settings → AI access, or connect the app again." The app sent no token, a token that is not complete, or a token that no longer works. Check that you copied the full text from the dialog. If you closed the dialog, you cannot see the token again: make a new token, and put it in your app.

> [accordion] The app says "This token no longer works"
>
> The app was connected, and then the token was revoked, reached its last day, or was not used for 30 days. A token also stops working when AI access is turned off for the account. The full message is "This token no longer works. Make a new one in Settings → AI access." Make a new token on the **AI access** tab, and replace the old one in your app.

> [accordion] The chat app says "This connection no longer works"
>
> The connection was revoked, reached its last day, or was not used for 30 days. The full message is "This connection no longer works. Reconnect LP Mimic in your AI app." Connect the app again: in the app, press **Connect** on the LP Mimic connector, then press **Allow** on the LP-Mimic page.

> [accordion] The LP-Mimic page says "This link is not complete"
>
> The page was opened without the details that the app sends. Start again from your AI app, not from a saved link.

> [accordion] I added lpmimic before, and the new token does not work
>
> Your app still has the old entry. In Claude Code, run `claude mcp remove lpmimic`, then run the new command. In Codex, replace the old `[mcp_servers.lpmimic]` block. In Cursor, replace the old lpmimic entry in `mcp.json`.

> [accordion] The app cannot act, only read
>
> The token or connection has **Read only** access. The access cannot be changed. Make a new token with **Read and trade**, or connect the chat app again and pick **Read and trade**.

> [accordion] The app says "Resume it in the console" or "Change it in the console"
>
> The AI tried a change that only you can make. An AI app cannot turn on a wallet that a loss limit or a stop paused, and it can only lower a loss limit. Make the change in the console. Read [Managing copies](https://docs.lpmimic.com/copy-trading/managing-copies.md).

> [accordion] The app says "Could not record this action, so nothing was done"
>
> LP-Mimic records each action before it runs. This time it could not, so it did nothing. The app can try again.

> [accordion] The app answers about the wrong wallet
>
> A token or connection works only with the wallet it was made for. Switch to the other wallet in the wallet menu, make a token there or connect again, and use that in your app.

> [accordion] I do not see the AI access tab
>
> AI access is in beta and is not on for every account. Ask [support](https://docs.lpmimic.com/help/support.md) to turn it on.


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