Skip to main content

Connections and API keys

For your first backtest, follow Start with AI Researcher. Create the credentials needed for the services you use.

Credentials by workflow​

WorkflowCredential or accessWhere to configure it
AI Researcher connecting to FundProMesoSim API key, also used by Q-APILocal ~/.env.mesosim file
Codex or Claude desktop appAccess to your selected AI applicationIn that application
Metabase's built-in AI agentYour own AI provider API keySee Metabot key requirements
MesoLive APIsSeparate MesoLive API keyYour live-trading integration

A MesoLive key is needed when you use MesoLive APIs. The Metabase provider key enables its AI features; ordinary queries and dashboards remain available without it. Neither key is required to run your first backtest with AI Researcher.

For Metabase provider choices and key requirements, see Explore results with Metabot.

Generate a service API key​

Open the key-management page for the service you want to use:

Then follow these steps in the selected portal:

  1. Click on New API Key.
New key
  1. Provide a name for your API key and click OK.
Name Ok
  1. Copy and save your API key.
Api key
warning

Your API key is like a password. Keep it secure and do not share it. For security reasons the API key expires after 6 months.

Connect AI Researcher​

Ask “Use AI Researcher to check my setup,” then enter the MesoSim key in the local ~/.env.mesosim file prepared by the setup tool. Follow the connection instructions for the portal origin and workspace. Keep credentials out of chat and strategy files.

Connection troubleshooting​

  • Wrong instance: MESOSIM_INSTANCE must be your FundPro portal's HTTPS origin, without /api or another path.
  • Authentication failure: check that you supplied a MesoSim key rather than a MesoLive or AI provider key. If the service key has expired, generate a replacement and update the local configuration.
  • Configuration changes not picked up: reconnect the plugin or start a new task or conversation after saving ~/.env.mesosim.
  • Remote or WSL setup: edit the file in the home directory of the environment running the plugin.

Repeat “Use AI Researcher to check my setup” after correcting the connection. Contact Support if the problem persists; do not include your API key in the message.