{"slug": "use-your-claude-api-key-in-an-ai-agent-setup-and-cost", "title": "Use your Claude API key in an AI agent: setup and cost", "summary": "Construct now lets Starter ($49 a month) and Pro ($259 a month) workspace owners add a Claude Console API key in Settings, Models, so designated agents bill Anthropic per token instead of drawing on the plan's included usage. Anthropic's pricing page, checked Nov 19, 2026, lists Claude Sonnet 5.5 at $2 per million input tokens and $10 per million output tokens, with cache hits at $0.10 per MTok, and Construct's worked example puts a weekly job reading 200,000 tokens and writing 20,000 tokens at $0.60 on Sonnet 5.5 and $1.20 on Opus 5.5. Construct validates the pasted key by asking Anthropic which models it can run, rejects Admin keys, and offers a per-key monthly dollar limit plus a default fallback to Construct's own models when a key runs out of credit, is revoked, is rate limited or Anthropic is down.", "body_md": "# Use your Claude API key in an AI agent: setup and cost\n\nTo run Claude in an AI agent, use an API key from the Claude Console. How to get one, what Claude costs per job, and how to add it to Construct.\n\nTo run Claude inside an AI agent made by another company, use an API key from the [Claude Console](https://platform.claude.com/), billed per token and separate from any Claude subscription. In Construct, a Starter ($49 a month) or Pro ($259 a month) workspace adds a Console key in Settings, picks which agents run on it, and pays Anthropic’s API prices for those turns instead of drawing on the plan’s included usage.\n\n## How do you get a Claude API key?\n\n1. Sign in to the [Claude Console](https://platform.claude.com/) , or create an account there.\n2. Add credits or a payment method in billing. API use is billed per token as you go.\n3. Create an API key, give it a name you’ll recognize, and store it in a password manager.\n\nMake one key per tool. If Construct, a script and a coding tool share a key, you can’t tell which one spent the money, and revoking it breaks all three. An Admin API key won’t work for this: it manages an organization and can’t run models.\n\n## What does Claude cost through the API?\n\nPrices per million tokens (MTok) from Anthropic’s [pricing page](https://platform.claude.com/docs/en/about-claude/pricing), checked Nov 19, 2026:\n\n| Model | Input | Output | Cache hits | \n|---|---|---|---|\n| Claude Fable 5.2 | $8 / MTok | $40 / MTok | $0.20 / MTok | \n| Claude Opus 5.5 | $4 / MTok | $20 / MTok | $0.20 / MTok | \n| Claude Sonnet 5.5 | $2 / MTok | $10 / MTok | $0.10 / MTok | \n| Claude Haiku 5.5, prompts up to 100,000 tokens | $0.10 / MTok | $0.50 / MTok | $0.01 / MTok | \n| Claude Haiku 5.5, prompts over 100,000 tokens | $0.50 / MTok | $2.50 / MTok | $0.05 / MTok | \n\n### What does one agent job cost?\n\nMultiply the tokens read by the input price and the tokens written by the output price. Take a weekly research job that reads 200,000 tokens of pages and files and writes 20,000 tokens of notes. On Sonnet 5.5 that is 0.2 × $2 plus 0.02 × $10, or $0.60. On Opus 5.5 it’s $1.20.\n\nReal runs can cost less than that sum, because an agent sends its instructions and the conversation so far again at every step, and the repeated part is read from the cache. A cache hit on Sonnet 5.5 costs $0.10 a million tokens against $2 for fresh input. These token counts are an example, not a measurement, so look at what the key spent after its first week and adjust the model per job.\n\n## How do you add your Claude key to Construct?\n\nOwn model keys come with Starter and Pro. In a team, the owner and admins add them.\n\n1. Open Settings, then Models, and choose Claude.\n2. Paste the Console key. Construct checks it by asking Anthropic which models it can run, and turns away a key that can’t run models, such as an Admin key.\n3. Once the key connects, choose which Claude model Construct runs on it, and set one for each agent under **Model for each agent** .\n4. Optionally give the key a **Monthly limit** in dollars. A key that reaches it isn’t called again that month.\n\nThe key is sealed in your workspace and only opened to make a call. Settings then shows what each key spent, by model and by which agent used it.\n\n## What changes once Claude runs on your key?\n\nTurns an agent runs on your key are billed by Anthropic and don’t count against your plan’s included usage. Two switches in Settings decide how the key and the plan share the work:\n\n| Setting | What it does | \n|---|---|\n| **Use included usage first** | Turns run on Construct’s own models while the plan’s included usage has room, and move to your key after | \n| **Use Construct’s models when a key fails** | On by default. If the key fails before the reply starts, because it’s out of credit, revoked, rate limited or Anthropic is down, the turn moves to Construct’s models and the reply says so in one line, unless the plan’s usage is spent too | \n\nWith the second switch off, a failing key stops the turn and shows what went wrong instead, so nothing runs on Construct’s models at all. If a key fails after the reply has started, the reply ends with what came and the same line. A key at its monthly limit is skipped before it’s called.\n\nWhat your key pays for is the model’s work. The plan still covers everything around it: the agents’ own computers and browser, connected apps, files, workflows and schedules, memory, and agent email. See [pricing](https://construct.computer/pricing/) for what each plan includes.\n\n## Can you use other providers?\n\nYes. Starter and Pro workspaces can add keys from OpenAI, Google Gemini, SpaceXSI (formerly xAI) and Amazon Bedrock as well as Anthropic, and OpenRouter connects by signing in or with a key. Each agent can run on a different one: a research agent on Claude Opus 5.5 and an inbox agent on something cheaper, for example. A key from OpenAI is billed as API use, separate from ChatGPT Plus.\n\nIf your company already buys Claude through AWS, a Bedrock key runs Claude there and bills your AWS account.\n\n## Why put Claude in an agent rather than call the API yourself?\n\nThe API gives you a model. An agent that does recurring work also needs a computer to run code on, a browser, sign-ins to your apps, a scheduler, memory and a way to ask before it acts. Construct runs those parts, so your key pays for Claude’s thinking and nothing has to be built around it. If you’d rather build it, [Construct vs DIY](https://construct.computer/blog/construct-vs-diy/) walks through what that takes, and [how much an AI agent costs](https://construct.computer/blog/how-much-does-an-ai-agent-cost/) compares the bills.\n\nClaude is a product of Anthropic. Construct is not affiliated with or endorsed by Anthropic.\n\nHand Construct its first job.\n\n[Start free](https://construct.computer/home/#sign-in)\n\n[Open Construct](https://construct.computer/)", "url": "https://wpnews.pro/news/use-your-claude-api-key-in-an-ai-agent-setup-and-cost", "canonical_source": "https://construct.computer/blog/claude-api-key-ai-agent/", "published_at": "2026-10-25 00:00:00+00:00", "updated_at": "2026-11-23 01:44:57.864411+00:00", "lang": "en", "topics": ["ai-agents", "ai-products", "ai-tools", "large-language-models"], "entities": ["Anthropic", "Claude", "Construct", "Claude Console", "Claude Sonnet 5.5", "Claude Opus 5.5", "Claude Haiku 5.5", "Claude Fable 5.2"], "also_reported_by": [], "takeaway": "A weekly agent job reading 200,000 tokens and writing 20,000 costs $0.60 on Claude Sonnet 5.5 versus $1.20 on Opus 5.5, and cache hits at $0.10 per MTok on Sonnet 5.5 cut the repeated-context portion of that bill.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/use-your-claude-api-key-in-an-ai-agent-setup-and-cost", "markdown": "https://wpnews.pro/news/use-your-claude-api-key-in-an-ai-agent-setup-and-cost.md", "text": "https://wpnews.pro/news/use-your-claude-api-key-in-an-ai-agent-setup-and-cost.txt", "jsonld": "https://wpnews.pro/news/use-your-claude-api-key-in-an-ai-agent-setup-and-cost.jsonld"}}