Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/natureloved/HashPilot/llms.txt

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

HashPilot’s AI features are powered by Anthropic’s Claude. Every AI endpoint reads a single environment variable — ANTHROPIC_API_KEY — so setup is straightforward whether you’re running locally or deploying to Vercel.

Get your API key

1

Create an Anthropic account

Go to console.anthropic.com and sign up or log in.
2

Create a new API key

In the Anthropic Console, navigate to API Keys and click Create Key. Give it a descriptive name (for example, hashpilot-local).
3

Copy the key

Copy the key immediately after creation. Anthropic will not show it again. If you lose it, you will need to create a new one.API keys follow the format sk-ant-api03-....
4

Add the key to HashPilot

Create or open .env.local in the project root and paste your key:
.env.local
ANTHROPIC_API_KEY=sk-ant-api03-...
Restart the dev server if it is already running so Next.js picks up the new value.
Never commit .env.local to git. Your API key grants full billing access to your Anthropic account. Treat it like a password.

Setting the key in Vercel

For production deployments on Vercel, environment variables are set through the project dashboard — not in code.
1

Open your project settings

In the Vercel dashboard, go to your HashPilot project and click Settings → Environment Variables.
2

Add the variable

  • Name: ANTHROPIC_API_KEY
  • Value: your API key (sk-ant-api03-...)
  • Environment: select Production (and optionally Preview)
Click Save.
3

Redeploy

Trigger a new deployment. Vercel injects environment variables at build and runtime — no code changes are needed.
If you want AI features available in Vercel Preview deployments as well, add the key to the Preview environment in addition to Production.

Which endpoints use the key

All four AI endpoints read ANTHROPIC_API_KEY from process.env. None of the endpoints cache or store responses.
Powers the real-time streaming chat interface in AI Strategy Chat and the Miner Archetypes AI roadmap generator. Uses claude-sonnet-4-6 with a max of 1500 tokens per response. Responses stream token-by-token to the browser.If the key is missing or empty, this endpoint returns HTTP 500 with "API configuration missing.".
Powers the Claim Oracle decision engine. Receives a scenario matrix (network growth, price move, new players, halvings) and returns a structured verdict: BULLISH / BEARISH / UNCERTAIN, plus a recommended action. Uses claude-sonnet-4-6 with a max of 1000 tokens per reading.
Generates the narrative debrief in the FOMO Machine after the counterfactual simulation runs. Describes opportunity cost in the terminal’s retro-tactical voice. Uses claude-sonnet-4-6.
Populates the Daily Digest card on the Dashboard with a fresh tactical summary. Uses claude-sonnet-4-6 with a max of 1000 tokens per digest.

Usage and cost

All endpoints use the claude-sonnet-4-6 model. Per-request token limits are:
EndpointMax tokens
/api/chat1500
/api/oracle1000
/api/fomo-story1500
/api/digest500
Costs depend on your Anthropic usage tier and the number of requests made. Refer to Anthropic’s pricing page for current rates. HashPilot does not store or reuse AI responses — each interaction calls the API fresh.

Next steps

Run locally

Set up and start the dev server on your machine.

Deploy to production

Push to Vercel and configure the key in your project settings.

Build docs developers (and LLMs) love