Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt

Use this file to discover all available pages before exploring further.

The sf CLI is the primary surface. Install it once and every other surface (MCP, web terminal, Mac panel) layers on top.

npm

npm install -g simplefunctions
Verify:
sf --version

First-time setup

sf setup
sf setup walks you through:
1

SF API key

Pasted from simplefunctions.dev/dashboard/keys, or auto-issued via sf login.
2

Kalshi credentials (optional)

Your private key for read-only positions or live trading.
3

Polymarket wallet (optional)

Wallet address for positions and on-chain trading.
Credentials live in ~/.config/simplefunctions/config.json. They never leave your machine unless you opt into BYOK cloud secrets via sf portfolio enable.
If you want to run portfolio autopilot in the cloud, see Portfolio autopilot. The CLI encrypts your Kalshi private key (AES-256-GCM) and uploads it. Decrypt happens only inside an isolated Trigger.dev process.

Login

sf login
Opens a browser. After authorization, the CLI receives a long-lived API key and writes it to your config. To rotate or scope keys, see API keys.

Verify

sf me --json
Returns your account context (user id, plan, Kalshi/Polymarket linkage, recent activity). If this prints a JSON envelope without an error field, you’re set.

Next steps

Quickstart

First 5 minutes — agent loop with curl + CLI.

MCP server

Wire up Claude Desktop or Cursor.