<< Home | Tech
Eliminated usage-based API costs for Claude automations
| Area | Tech |
| AI used | Claude |
| Source | r/n8n |
| Posted | 2026-02-10 |
The move
Host a local FastAPI server on a VPS that proxies requests through your Claude Pro account.Steps
- Rent a small VPS and install the Claude Code SDK.
- Authenticate the SDK with your Claude Pro account.
- Deploy a FastAPI server with a /generate endpoint.
- Configure an HTTP Request node in n8n to POST to your server IP.
Prompt for your AI
Act as an API endpoint. Process the following request: [insert prompt text] and return the response in the same format as the official Claude API.
What happened
The user wanted to avoid high API costs for daily n8n automations. They set up a small VPS running a FastAPI server authenticated with their existing Claude Pro subscription. This allowed them to use their $20/month subscription as an API endpoint for content generation and data extraction.Watch out
Excessive usage may lead to your Claude Pro account being blocked by Anthropic. Do not use this method for production-level client work.Give it to your agent
Read https://howtheyuse.ai/p/eliminated-usage-based-api-costs-for-claude-automations.md and help me do this.