Claude Agent SDK logo

[ AI tools · Frameworks and platforms ]

Agents That Work Like a Careful Colleague

The Claude Agent SDK is the agent loop behind Claude Code, as a library. We use it to build agents that read files, run commands and use your tools, with permissions that keep every action in bounds.

Contract review agent · tool callspermission mode: default
  • Readcontracts/acme-msa.pdfAllowed
  • Grep"limitation of liability" in contracts/Allowed
  • Bashpython summarize.py --allAsked user
  • Writereports/acme-review.mdAllowed
  • Bashrm -rf contracts/Denied
  • mcp__crmupdate_account(acme, risk="medium")Asked user

Example run. Rules decide what the agent may do alone, what needs a person and what is never allowed.

The Agent Behind Claude Code, as a Library

Anthropic’s Claude Agent SDK gives your product the same loop that powers Claude Code, in Python or TypeScript. Six drawers hold what it ships with; open one.

[ The agent loop ]

Gather, Act, Verify, Repeat

Gather context

Read the files, search the folders and query the tools that matter for the task.

  • Take action: Write a draft, run a script, call an API or hand part of the job to a subagent.
  • Verify the work: Run the tests, check the output against rules or ask another model to review it.
  • Repeat or finish: Fix what failed and go round again, or stop and report what was done.
01
[ What we build ]

Agents That Do a Full Shift of Desk Work

The SDK suits agents whose job looks like a skilled person working at a computer, not a chatbot answering one question.

  • 01Contract review agentReads a folder of agreements, checks each against your playbook and writes a report with clause references.
  • 02Finance close assistantPulls exports, reconciles them with scripts, flags differences and drafts the variance notes.
  • 03Research analystSearches internal documents and the web, writes findings with sources and keeps a working file.
  • 04Support engineer agentReproduces a reported bug from logs, writes a failing test and proposes a fix for review.
  • 05Data pipeline fixerInvestigates failed jobs, reads the logs, patches the transformation and reruns it in staging.
  • 06Compliance evidence collectorGathers screenshots, configs and logs from systems into an audit-ready evidence pack.
[ Controls ]

An Agent With a Shell Needs Firm Limits

These are set before the agent touches real data.

agent-optionsSimplified example
  1. 1sandbox: container, network allowlist
  2. 2permissions: allow Read, ask Edit, deny rm
  3. 3hooks.PreToolUse: log and block risky calls
  4. 4mcp.crm: token scoped to read:contacts
  5. 5approval: writes wait for #ops-approvals
  6. 6limits: 40 turns, 10 min, token budget
  1. 01

    Sandboxed workspace

    The agent runs in a container with only the files and network access it needs.

  2. 02

    Allow, ask and deny lists

    Per tool and per argument, so reading is free but deleting never happens.

  3. 03

    Hooks for audit

    Every tool call logged with inputs and results, and risky ones blocked in code.

  4. 04

    Scoped credentials

    Each MCP connection uses its own least-privilege account.

  5. 05

    Human approval

    Writes to systems of record wait for a person in your app or in Slack.

  6. 06

    Budgets

    Limits on turns, time and tokens per run, with alerts when a run gets close.

Programmer's desk with several monitors of code lit in blue
[ Where it runs ]

Your Cloud, Your Models, Your Data

  • Claude APIDirect, with the newest models first.
  • Amazon BedrockInside your AWS account and region.
  • Google CloudThrough Google's agent platform.
  • Microsoft FoundryInside Azure, with Entra sign-in.

One Agent, Then a Team of Them

  1. 1

    AI Agent Integration

    One Claude Agent SDK agent with tools, permissions and audit logging, for one job.

    $4,000 to $6,000

    1 to 2 weeks

    Details
  2. 2

    Dedicated Developer Trial

    A senior engineer who builds and runs Claude agents in your team.

    $3,000 to $5,000/mo

    1 month

    Details
  3. 3

    Agent workforce

    Several agents with subagents, MCP connections, sandboxes and evaluations.

    From $8,000

    Typically six to ten weeks

    Scope it

Packages from $1,500; custom projects from $8,000. Model usage billed by Anthropic or your cloud.

Claude Agent SDK Questions

Ask Us Directly

What is the Claude Agent SDK?

Anthropic's library for building agents on the same harness that powers Claude Code, in Python and TypeScript. It includes file, search and shell tools, subagents, hooks, MCP support and permission controls.

How is it different from a chatbot framework?

It is built for agents that do work: reading and writing files, running commands, calling tools and checking results over many steps, rather than answering one message at a time.

Is it safe to give an agent a shell?

Only inside limits. We run agents in sandboxed containers with allow, ask and deny rules per tool, hooks that log and block risky calls and scoped credentials for every system.

Can it run in our AWS, Google Cloud or Azure account?

Yes. The SDK can call Claude models through Amazon Bedrock, Google Cloud or Microsoft Foundry, so traffic and billing stay in your cloud.

Claude Agent SDK or OpenAI Agents SDK?

Both are good. The Claude Agent SDK is strongest when the agent works with files, code and commands. The OpenAI Agents SDK is lighter for handoffs between chat specialists. We pick based on the job and test both when it is close.

How is it billed?

You pay for Claude model usage through the Claude API or your cloud provider. The SDK itself is free. We estimate cost per run during the first build.

[ Contact ]

Let's build your next product together

Book a free strategy call and leave with a clear plan and estimate. No commitment.

  1. 01Pick a time that suits you
  2. 0230 minutes on scope, stack, timeline and budget
  3. 03Fixed-price proposal, NDA on request
Prefer email? contact@sajaltech.com