For AI assistants (machine-readable reference)
stocksori ships a dedicated AI reference — not human docs, but a single text written so an AI can precisely understand stocksori's architecture, constraints, and the full strategy API.
Open /llms.txt
Paste the whole file into ChatGPT/Claude and ask things like:
- "Read this, then write an onUpdate strategy that buys under RSI 30 and sells over 70"
- "Explain what this strategy code does and its risks"
- "Summarize stocksori's security model"
Automated development (dev API) — using Claude
On the elite plan, an AI can iterate by itself: edit code → backtest → analyze → repeat.
1. My page → AI dev token: issue one, then click "Copy AI starter prompt" (shown only right after issuing) — token, entry point, and loop rules in one prompt.
1-1. Which AI works? The automated loop needs an AI that can call external APIs directly.
- Claude (web) — works, with the network setting below.
- Claude Code / API-based agents — works, no extra setup.
- ChatGPT — its code sandbox blocks outbound network entirely, so the **automated loop is
impossible** ("Could not resolve host" — not a server issue). With ChatGPT you can only paste llms.txt and run the code yourself, copy-pasting results back (manual mode).
2. Using Claude? Enable network access first (outbound requests are blocked by default, so API calls fail):
- claude.ai → Settings → Capabilities → "Code execution and file creation"
- Turn on "Allow network egress", set Domain allowlist to All domains or add the stocksori domain
- Start a new conversation after changing settings (existing chats may not pick it up)
3. Paste the starter prompt into a new chat — the AI reads context → llms.txt and starts the loop.
4. Keep your agent running — backtests execute on your own agent (non-custodial). If it's offline the AI tells you and the job waits.
Dev-only API — deploy and live trading are impossible with this token; decisions touching real funds always stay human, on screen.
Why a separate document
- The ctx list is generated from the same source as the code — the AI can't invent functions that don't exist.
- Invariants (non-custodial, honesty rules) are explicit, so the AI won't give wrong guidance (e.g. "give stocksori your keys").
stocksori never calls AI on your behalf. Getting code and verifying it (backtest) are yours.