Skip to content

About

Connect AI agents to Felix through MCP or the REST API: Claude, Cursor, OpenAI Agents SDK and LangChain examples. Agentic trading infrastructure for everyone.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Felix

Felix developer examples

Agentic trading infrastructure for everyone. Connect an AI agent to one Felix account for crypto perpetuals, prediction markets and options, through MCP or the REST API.

Connect in one line

Create a key in the Felix app under Developers, then add the hosted MCP server.

Claude Code:

claude mcp add --transport http felix https://mcp.felix.trade/mcp \
  --header "Authorization: Bearer fk_YOUR_KEY"

Cursor (~/.cursor/mcp.json) and any client that can send a header:

{
  "mcpServers": {
    "felix": {
      "url": "https://mcp.felix.trade/mcp",
      "headers": { "Authorization": "Bearer fk_YOUR_KEY" }
    }
  }
}

To sign on your own machine instead, install the local server:

npm install --global felix-mcp@latest

Its create_account tool lets an agent open its own account. The owner key stays on the machine, outside model context.

Trade real money through the API

  1. Register without the app: POST /v1/register/challenge, sign it with the owner wallet, then POST /v1/register returns a key.
  2. Bind the owner, fund the Arc home with USDC, and finish setup.
  3. Mint an owner-signed live key and place your first order with POST /v1/orders.

Every step is in Registration. You can rehearse in simulation mode first.

Agent frameworks

Both connect to the hosted MCP server with your key. Run them with FELIX_API_KEY set.

Install as an agent plugin

This repository follows the Agent Plugins 1.0 standard and also includes a Cursor-specific manifest. The root plugin.json, root mcp.json, and .cursor-plugin/plugin.json install the exact public Felix MCP release without storing a credential in the repository.

Before installing the plugin in Cursor, VS Code, or GitHub Copilot, run guided onboarding without modifying another client's configuration:

npx -y --package felix-mcp@latest \
  felix-keys onboard --accept-terms --client none

For Claude Desktop, use --client claude instead so onboarding can write the Claude configuration for you.

Onboarding keeps the owner identity, Felix credential, and recovery material in your system credential store. Installing the plugin does not fund an account or grant live execution authority.

In VS Code, run Chat: Install Plugin From Source and enter:

https://github.com/imblocksavvy-spec/felix-developer-examples

The same package can be submitted to Cursor Marketplace and loaded by other Agent Plugins compatible clients.

Try a workflow

The cross-market map is the best first example. It searches prediction markets, perpetuals, and options through the same Felix connection, then compares canonical instruments and read-only order previews without placing a trade.

Use the API directly

The direct examples expect a Felix credential from your application secret manager. Never put a key, owner key, recovery code, seed phrase, signature, or signed transaction in a prompt, repository, URL, or log.

export FELIX_API_KEY="<load from your secret manager>"
node api/node/research.mjs BTC
node api/node/backtest.mjs BTC

See api/node/README.md for details.

Links

Safety

Trading involves risk, including total loss. These examples are technical integration references, not investment advice. Read the risk disclosure and custody model before funding an account or granting execution authority.

License

MIT

About

Connect AI agents to Felix through MCP or the REST API: Claude, Cursor, OpenAI Agents SDK and LangChain examples. Agentic trading infrastructure for everyone.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages