Why I chose the Claude Agent SDK for a travel-planning prototype

November 10, 2025

My company wanted to build an itinerary assistant similar to Wonderboat.

Users tell us where they want to go, how long they have, who is traveling and what they can spend. The assistant researches places, arranges each day and revises the plan in conversation. After a first draft, someone might say, “An older relative is coming; less walking on day two.” The assistant should adjust the affected activities and preserve preferences already settled.

We needed a prototype people could actually try. Only after planning a trip with it would users discover whether they wanted to delegate the task and which parts were worth building. For a small team, allocating time is part of technology selection.

I investigated OpenCode, the Claude Code SDK, the OpenAI Agents SDK and Strands Agents SDK. My question evolved from “Which framework works?” to “What does the SDK actually run?” to “How do skills and subagents relate?” Eventually I returned to cost: could we keep the execution machinery and replace expensive Claude calls with Kimi or DeepSeek?

This retrospective combines research conversations from November 3 and 10, 2025, with my recollections of the project and experiments. The archive date follows the second conversation, November 10 at 08:12. The sequence comes from saved conversations, with explanations and examples checked later. It is not a verbatim transcript. I keep the two rounds separate so the November 10 comparison is not attributed to the November 3 decision. 12

Break down the need and look for what can be reused

A direct model call can write a plausible three-day Hangzhou itinerary. Our assistant also had to establish whether attractions were open, travel times, whether a restaurant fitted the route and which arrangements a changed condition invalidated.

I imagined collecting constraints, looking up information, drafting a plan, checking time and budget, and searching or adjusting again. That combines language understanding, external data and deterministic calculations.

I therefore favored an existing agent framework. We still needed search, maps, place information and travel rules, but building a model/tool execution loop from scratch was unnecessary before product validation.

My November 3 ChatGPT request was broad: survey the Claude Code SDK, uses, scenarios, user stories, tutorials and differences between Skills, Subagents and Tools. Asked to narrow it, I specified Anthropic’s SDK, code examples, comparison with alternatives and Python first. 1

The name “Claude Code SDK” was already dated. Anthropic introduced it with Claude 4 on May 22, 2025, and renamed it the Claude Agent SDK on September 29, emphasizing uses beyond coding. 34 I still used the old name because I wanted to bring Claude Code’s existing way of working into an application.

Bind AI offered a route from installation and basic calls to custom agents. A DataCamp tutorial showed gradual integration through several Python projects. Helpful introductions, but exact parameters still needed version-specific official references. 56

A tutorial from Sider illustrates how names can mislead. Although its title mentioned the Claude Code SDK, it installed anthropic and @anthropic-ai/sdk and used client.messages.create(). It explained the ordinary Claude API client, which does not establish how the Agent SDK executes. 7

Similar names left very different work for the application. That distinction prompted my next question.

The Python SDK made me ask who actually runs the agent

I initially thought of the SDK as a convenient wrapper. The useful question was what it wrapped.

pip install claude-agent-sdk installs the official Python SDK. Version 0.1.4, available at the time, required Python 3.10+, Node.js and a separate installation of Claude Code 2.0.0+. 8 The package locates the claude executable, starts a subprocess and exchanges structured messages on standard input and output rather than reimplementing Claude Code inside Python. The historical SubprocessCLITransport source shows this directly. 9

flowchart TD
    A[行程助手的 Python 服务] <--> B[Claude Agent SDK Python 接口]
    B <-->|stdio / JSON 消息| C[Claude Code CLI 子进程]
    C <-->|模型请求与响应| D[模型 API]
    C <--> E[内置工具与工作目录]
    C <--> F[MCP 工具:地点、路线、业务数据]

It resembles controlling a browser through Puppeteer: the application calls an interface, and a separate program performs the work. The analogy is only about layering. The Python SDK also handles messages, callbacks and custom tool integration.

A September 2025 founding-team interview in The Pragmatic Engineer discussed Claude Code’s TypeScript, React, Ink, Yoga and Bun choices. 10 More relevant to me than the language was the work already implemented: the execution loop, tools, context handling and runtime integration.

At the time, one normally installed Claude Code first and the Python SDK second. Putting claude on PATH was easiest. Version 0.1.4 also checked common directories and accepted an explicit path through ClaudeAgentOptions(cli_path="..."). 89

An ordinary model client sends requests and receives responses. This SDK brought an executable capable of continuing to take actions into our application architecture.

Is a skill a smaller subagent?

The initial report discussed tools, skills and subagents together. If all ultimately use prompts, and a skill can mention working with another agent, could a skill be thought of as a subagent’s subagent?

That was my second substantive question. Several features look like a Markdown file containing instructions. Similar file formats do not imply the same execution model.

I came to distinguish them by responsibility:

ConceptWhat it providesTravel assistant example
ToolCallable operation and resultLook up opening hours, calculate a route, read preferences
SkillOn-demand procedures, knowledge and resourcesPlan family trips or check whether a day is overloaded
SubagentDelegated work in a separate contextResearch attractions for one day and return findings

Anthropic’s October 16 Skills introduction described packaging instructions, scripts and resources into directories for on-demand loading. A skill can contain programs as well as prompts. 11 A subagent has its own task execution and context; it can keep lengthy intermediate research there and return useful results to the main agent. 4

A skill has no independent conversation waiting for queries. Loading one does not create a reasoning process. The running agent reads it and acts on its method. Delegating a task to another agent is a different operation.

For travel planning, that matters to complexity. A reusable checklist for lunch breaks, transport and budget is worthwhile without assigning a separate agent to every checklist.

One article I encountered, published October 23 under the byline “AI猿智慧,” described reverse-engineering Agent Skills and recreating them with Strands Agents SDK. Its example loaded skill files using Strands tools and hooks. It was one lead that brought Strands into consideration. 12

I did not evaluate Strands deeply. Beyond my initial impression that it seemed AWS-specific, I had seen too little adoption evidence and practical feedback to feel confident about stability. Claude Code was commonplace among developers I knew. With no time to benchmark every option, that difference in confidence affected the choice.

Later verification corrected the product facts. Strands was already Apache 2.0 open source and was not AWS-only. AWS’s May 16, 2025 launch announcement listed Anthropic API and Ollama as model sources and reported production use by teams behind Amazon Q Developer, AWS Glue and VPC Reachability Analyzer. 13 The accessible portion of the 53AI article also mentioned cross-cloud compatibility. 12

That refutes “closed source” and “AWS-only,” but does not measure reliability in our use case or offer adoption figures comparable to Claude Code. More precisely, the evidence available to me did not settle my stability and integration concerns, and with little validation time I placed greater weight on the adoption signal for Claude Code. This explains where I stopped investigating; I never tested and established that Strands was unstable.

What does an SDK save over writing the loop myself?

My next question was: what advantage does the Claude Agent SDK offer over my own agent loop?

A basic loop is straightforward. Call the model, check for a tool request, execute it, append the result and call the model again until it returns a final answer. A first version can be short.

Real tasks raise further questions. What happens when history grows? How do we continue after tool errors or resume a conversation to revise a plan? How do intermediate events reach the UI? Which actions can proceed automatically and which need an application decision?

I valued the combination. The SDK could reduce work on context, tools, messages and sessions, while travel rules and tools remained ours. The ability to continue does not guarantee automatic recovery or correct answers.

Here is a small illustration using Python interfaces available then. Written later, it calculates a meal budget from user-supplied figures and does not query restaurants. It was not production code. @tool and create_sdk_mcp_server expose a Python function, while ClaudeSDKClient handles the interaction. 8

import asyncio
from claude_agent_sdk import (
    ClaudeAgentOptions, ClaudeSDKClient, PermissionResultDeny,
    create_sdk_mcp_server, tool,
)

@tool("meal_budget", "按天数、人数和每日每人餐费计算预算",
      {"days": int, "people": int, "daily_yuan": int})
async def meal_budget(args):
    values = [args[k] for k in ("days", "people", "daily_yuan")]
    if any(v <= 0 for v in values):
        return {"content": [{"type": "text", "text": "参数必须为正数"}],
                "is_error": True}
    total = values[0] * values[1] * values[2]
    return {"content": [{"type": "text", "text": f"餐费预算:{total} 元"}]}

async def deny_other_tools(tool_name, tool_input, context):
    return PermissionResultDeny(message="这个演示只批准餐费计算工具")

async def main():
    server = create_sdk_mcp_server(name="trip", version="1.0.0",
                                   tools=[meal_budget])
    options = ClaudeAgentOptions(
        system_prompt="你是行程助手。餐费计算使用工具;不要编造实时价格。",
        mcp_servers={"trip": server},
        allowed_tools=["mcp__trip__meal_budget"],
        can_use_tool=deny_other_tools,
        setting_sources=[],
        max_turns=4,
    )
    async with ClaudeSDKClient(options=options) as client:
        await client.query("两个人玩三天,每人每天餐费 120 元,一共多少?")
        async for message in client.receive_response():
            print(message)

asyncio.run(main())

The interesting part is the division of labor. The model understands the request and selects a tool, Python performs a defined calculation, and the result informs the response. A mapping or place service fits the same boundary.

allowed_tools concerns automatic approval; omitting a tool there does not remove it from the system. This example separately uses a callback to deny other tool requests requiring a permission decision. It is not an OS sandbox. I checked syntax and interfaces without making paid API calls during editing.

Are there real examples, and how do other SDKs differ?

A feature list was not enough, so I asked for concrete online examples of benefits over a custom loop. Developer articles and open-source projects were fine, but I wanted practical scenarios in any industry. 1

Coding makes the pattern visible: read files, change code, run tests, then revise based on failures. Email triage, repeated source checks in research and fetching itineraries or calendars from external services have similar structures. Anthropic’s engineering article used such examples to explain opening Claude Code’s capabilities to other applications. 4

These examples supported architectural fit, not proof of a successful travel product. The research chat mentioned efficiency and scale figures without independently verified projects and conditions, so I excluded those as selection evidence. We could transfer the structure of obtaining information, taking action and checking the result.

The choices now looked more concrete:

OptionCapabilities known thenPrototype trade-off
Build a loopDirect control over calls, tools and stateTeam implements everything needed beyond the simple loop
Claude Platform APIModel and platform tools with application-owned control flowMore assembly than directly reusing an agent runtime
OpenAI Agents SDK 1415Runner, tools, agent handoffs and tracingRuns agents but does not hand the app Claude Code’s existing working environment
OpenCodeThe historical SST README described open source, multiple providers and client/server architectureAttractive, with integration still to validate
Strands Agents SDKApache 2.0, non-AWS models and reported production adoption by AWS teams 13Limited practical evidence available to me and little time to test
Claude Agent SDKClaude Code execution and a Python interfaceClosest to the combination I wanted for rapid validation

I also examined Claude Platform, Anthropic’s developer platform and API entry point, not a plug-in store where travelers install assistants. 16 For this project I found the SDK a more convenient path to connecting tools, configuring execution and shipping a prototype.

“Less flexible than the SDK” would be misleading. Calling the API gives greater direct control at the cost of implementation work. The platform already offered code execution, an MCP connector and a Files API in May 2025. 17 I chose the SDK for a combination I could use sooner, not because the platform was less customizable.

I had initially doubted whether OpenAI’s product qualified as an agent runtime. In June 2025 it had already demonstrated orchestrating a research application. It could run and coordinate agents, beyond sending isolated requests. 18

My actual conclusion was: for the capabilities we wanted bundled, OpenAI’s SDK required more assembly, whereas the Claude Code SDK looked more complete and mature as a rapid-prototyping base. That was reason enough without misrepresenting the alternative.

OpenCode’s multi-model direction also deserved attention. I used an SST/OpenCode source snapshot predating November 3, 2025, avoiding both later features and an unrelated project of the same name. 19 This was not a systematic benchmark of every framework. The question was which path could give this team a working prototype fastest.

Looking more closely at skills

I returned to two questions: can a skill call a subagent to perform a task? Can a skill be seen as an LLM-based workflow? 1

They clarified the difference between file contents and what the system executes.

A skill does not run independently. Its text can instruct the running agent to delegate. It might say to have a route researcher check transport and then verify each day’s total time. With tools and permissions available, the main agent can do that. The main agent delegates; the skill supplies the method. Instruction-based composition does not create a deterministic subagent scheduler.

Some saved answers went too far, inferring from the absence of a dedicated invocation field that a skill could not guide delegation. I have corrected that inference. Whether a subagent can spawn more agents or inherit skills also depends on version and configuration, not simply on all of them using prompts.

I find “LLM-based workflow” a helpful interpretation. A skill describes steps, conditions and checks in natural language; an agent interprets them in context. An itinerary-review skill could be as simple as this proposed example, which was not necessarily used by the project:

---
name: itinerary-review
description: 检查多日旅行安排的时间、交通和预算约束。
---

读取用户确认的日期、同行人和预算。
逐日检查活动时长、交通时间,以及必要的休息时间。
缺少开放时间或路线证据时,先查询,不要猜测。
如果有可用的路线研究子 Agent,可委派独立调查并取得来源。
把冲突和可替换方案列出来,再向用户解释需要调整的原因。

On-demand loading keeps every rule out of the permanent system prompt: expose its purpose first and read details when relevant. 11 Natural-language instructions to do A before B do not create a workflow engine’s dependency graph, transactions, exact retries or idempotence.

That gives the business logic a boundary. Models can find attractions, explain trade-offs and propose alternatives. Code and data can add prices, validate dates and detect opening-hour conflicts. A skill can organize checks while deterministic tools perform them.

Putting it behind a web UI makes deployment concrete

Once I understood that Python starts a CLI, it became clear I could not deploy it like a stateless HTTP client alone.

Tasks need processes and working directories, may create files and need session recovery. The official Overview distinguishes the Agent SDK from the Client SDK, while Hosting highlights containers, sessions and isolation. These are living documents used here to explain deployment concerns, not to claim we used later APIs in 2025. 2021

I would start small: a frontend sends requests to Python, the service starts or resumes an agent session and streams events and final results back. Each task has a defined working directory. The app saves confirmed itinerary details and necessary state.

Separate directories in a shared service process do not provide full isolation between users. Stronger boundaries belong in containers or other execution environments. Budgets, timeouts, concurrency and failure logs also remain application responsibilities.

Our first business flow was deliberately narrow: state destination and preferences, research information, generate daily plans, check key constraints and accept one revision. Booking, payment and elaborate multi-agent cooperation could wait.

Could we keep the framework and replace Claude to reduce cost?

Claude seemed expensive, so I searched for terms like “claude agent sdk how to use kimi/deepseek”, hoping for a directly usable solution.

I did not find a clear article settling the SDK integration question. That describes my search, not the absence of material online.

The process architecture suggested an experiment. If Python starts Claude Code, and Claude Code can connect to other models through environment variables, settings and Anthropic-compatible interfaces, the SDK path might reuse those controls.

Separate three layers: our Python business code, the Claude Code agent executable and the service receiving inference requests. Invoking Claude Code from Python does not hard-code one destination in the Python package for every call.

I also considered Claude Code Router (CCR), which can sit between Claude Code and model services to route and adapt interfaces. The repository documentation consulted during editing describes that use. 22 For the prototype I preferred direct environment and settings configuration when the provider already offered a working Anthropic-compatible API, removing a service to maintain and simplifying diagnosis.

For services without a compatible API, CCR remained a candidate. It cannot automatically make every model compatible: tool-call and streaming translations still need testing.

I subsequently tested this compatible-endpoint approach and confirmed it worked. That was an important selection result. I could retain the execution framework while trying lower-cost models and evaluate framework and inference cost separately.

I wrote an initialization script to make configuring Claude Code and switching providers repeatable. That avoided redoing setup by hand and kept more time available for prototype validation.

Historical source helps explain it: version 0.1.4 merged the parent process environment with ClaudeAgentOptions.env and passed it to the child; model and settings were also passed as CLI arguments. 9 That established a route for configuration.

Server-side support existed then. DeepSeek’s V3.1 release notes on August 21, 2025 announced Anthropic-format support and Claude Code integration. 23 This establishes a contemporary compatible endpoint, not validation of the Python SDK path or of every Kimi version.

This brief configuration fragment illustrates the principle. Use it inside an existing SDK program with a verified compatible address and model. It is not a literal record of the historical experiment:

import os
from claude_agent_sdk import ClaudeAgentOptions

options = ClaudeAgentOptions(
    env={
        "ANTHROPIC_BASE_URL": os.environ["TRIP_ANTHROPIC_BASE_URL"],
        "ANTHROPIC_AUTH_TOKEN": os.environ["TRIP_PROVIDER_TOKEN"],
        "ANTHROPIC_API_KEY": "",  # 本例采用 token 鉴权,避免沿用另一套 key
    },
    model=os.environ["TRIP_PROVIDER_MODEL"],
    setting_sources=[],
    max_turns=6,
)

TRIP_* names are application environment variables invented for the example. For a service requiring an API key, use ANTHROPIC_API_KEY as its documentation requires. An endpoint supporting only OpenAI Chat Completions is insufficient: Claude Code must understand messages, tool results and stream events.

Settings scope matters. A file loaded by an interactive CLI need not be loaded in the same scope by the SDK. The historical version already offered setting_sources and settings, so I would specify them explicitly instead of relying on local machine state. 24

Changing the outer endpoint does not change the runtime’s tool protocol, defaults or expectations of model capabilities. After receiving an answer, check completed tool calls, multi-turn continuation, long contexts and any auxiliary calls that may use an unconfigured model.

I therefore separated connectivity from quality. First show that requests and execution work. Then measure real itineraries for quality, duration and cost. A lower token price need not lower cost per completed task if retries, failures and manual fixes increase.

Why I still chose the Claude Code SDK

I decided to use the Claude Code SDK, now named Claude Agent SDK, for the initial travel assistant.

I perceived Claude Code as widely adopted and in active use by many developers, making reuse of its execution capabilities a more dependable starting point. Broader use offered practical experience, reports of problems and known solutions. That signal mattered to a small company unable to evaluate every candidate comprehensively.

The team interview also documented growing usage. 10 With limited time and information, an established product gave me greater confidence that we could follow a path others had used and get a prototype running.

Functionally it combined many capabilities I needed. OpenAI could run agents but required more assembly for our goal. OpenCode’s openness and model support were attractive but needed validation. For Strands I lacked practical evidence to build confidence and time for a deeper test. Claude Code let me focus sooner on place data, route constraints, conversation design and user feedback.

The compatible-endpoint experiment also gave us a route to cost comparisons. Reuse the execution framework and compare models on actual tasks while advancing the product.

Limited time did not excuse skipping validation. I still needed representative trips: reasonable plans for children or older travelers, budget adherence, sourced locations and transport, preserving other constraints after a revision, task duration and cost.

Those checks belonged around a real product as soon as possible. Let people try the assistant and reveal what to fix next. At that stage, the most reasonable engineering decision was a widely used option with a complete enough feature set that the team could connect quickly.

After the preliminary November 3 choice, research continued into external data. The November 6 article on travel assistant data and prototype choices covers maps, rail, flights, hotels and travel content.

November 10 follow-up: validate interactively, then encode the SDK calls

I kept exploring alternatives. In the November 10 08:12 conversation I again compared Strands, Claude Agent SDK and competitors, specifying subagents, built-in tools (especially web search and Bash), file and command access controls and benchmarks as close as possible to real general-purpose tasks. 2

Travel was our application, but the execution machinery should also research, use tools, organize files and perform multi-step work elsewhere. Beyond model access, I wanted to know how much working environment each product supplied and how quickly I could see it act.

The research initially compared LangChain, AutoGen, CrewAI, LlamaIndex, OpenAI Agents SDK and Semantic Kernel with Strands and Claude. I then asked which came closest and supplied the Kode Agent SDK repository to add to the table. “Close” meant a substitute for the capabilities we actually needed.

The comparison dimensions reflected concrete engineering questions:

CapabilityWhat it meant for prototype validation
Subagents and division of laborDelegate some investigation and return results to the main workflow
Built-ins such as web search and BashHow many tools and execution paths must we implement before testing?
File and command access controlBound reads and commands and determine which actions need confirmation
Real tasks and benchmarksFind evidence closer to use than a feature checklist
MCP and non-coding tasksConnect tools for browsing and retrieving travel information

We then discussed assistants one could use directly. I pointed out that Codex was missing and requested a comparison of Q CLI, Codex CLI, Kode CLI and Claude Code CLI. Twice I emphasized non-coding MCP tasks, such as browsing with Playwright MCP. The answer cataloged CLI/REPL interfaces and mentioned DeepAgents and Google ADK. Inclusion does not mean I installed, tested or verified them all. 2

An interactive shell let me compare behavior through use before deciding what to program. I could watch an assistant interpret a request, pick tools and assemble results, then change prompts or tools and try again. This distinguished vague instructions, missing information and an unsuitable execution model without first writing SDK integration code for every idea.

My workflow was try interactively → adjust prompts and tools → test interactively again → turn satisfactory behavior into programmatic SDK calls. On itinerary tasks, look for clarifying questions, appropriate source selection and preservation of constraints after a revision, beyond fluent final prose.

Moving to the application still required checking prompts, tools, permissions and sessions, then rerunning the same tasks through the SDK. A CLI is no guarantee of effortless interchangeability with an SDK. I wanted a smooth path between them.

This further explains my preference for Claude Code plus Claude Agent SDK. I valued adoption and existing execution, as well as the ability to establish a task interactively before integration. Selection cost includes time to find problems, revise and revalidate as well as initial setup. The follow-up kept the same rapid-prototype goal and clarified how to test faster.

Choosing sources for external tools was a different decision. My research on Thunderbit, Apify and custom scraping APIs is covered in another data route for a travel agent.

Source notes and references

My recollection supplies the product motivation, shortlist, adoption judgments, cost concern, successful compatible endpoint and initialization script. The saved ChatGPT conversations establish question order. I have not included the original script, and the configuration example does not reconstruct it. Adoption was a selection signal, not a measured travel reliability metric. Exact experiment versions, model-by-model test lists and savings were not recorded, so I claim no equivalence of functionality or results. Conversations supplied leads rather than proof. Some early claims about permissions, skill invocation, guarantees and case-study returns were corrected or dropped.

Sources were rechecked November 13, 2026. Historical APIs are checked chiefly against the 2025 Python SDK 0.1.4 source, without implying I necessarily ran that version. Examples were written to teach the architecture. I did not rerun the historical external-model experiment or conduct new performance comparisons. OpenCode is compared against a contemporary source snapshot.

The official Overview and Hosting pages are living documents; citations give retrieval dates. Do not project today’s install instructions backward. The Python SDK only began bundling the Claude Code CLI with 0.1.8 on November 19, 2025. At the article date the CLI was still installed separately. 2526 Skills did fall within the time window, having been announced October 16, 2025.

Footnotes

  1. OpenAI. (2025, November 3). Claude Agent SDK 调研对话:Python、Skills、Subagents 与自建循环比较 [生成式 AI 对话,题名为整理名称]. ChatGPT. https://chatgpt.com/share/6af6697d-0ee0-83e8-899b-8279f24e5503 。分享页未能直接读取,实际依据为用户逐条复制提供的 Markdown 对话存档。提问者为 CaiBorui,回答由 ChatGPT 生成;模型版本未记录。 ↩ ↩2 ↩3 ↩4

  2. CaiBorui. (2025, November 10). Strands、Claude Agent SDK 与竞品调研对话 [个人对话记录,含生成式 AI 回答;题名为整理名称]. 原始对话存档。依据本人提供的对话文本,文件首行标注时间为 8:12;提问者为 CaiBorui,助手模型版本未记录。此记录用于还原候选范围、比较维度与追问顺序,交互验证后再固化 SDK 调用的工作流由本人补充说明。原回答中的框架能力、CLI 与 SDK 对应关系、性能排名及 benchmark 数字不作为已核实的技术结论。 ↩ ↩2 ↩3

  3. Anthropic. (2025, May 22). Introducing Claude 4. https://www.anthropic.com/news/claude-4 ↩

  4. Anthropic. (2025, September 29). Building agents with the Claude Agent SDK. https://www.anthropic.com/engineering/building-agents-with-the-claude-agent-sdk 。原链接现重定向到 Claude 网站;用于 SDK 更名、通用 Agent 方向和架构说明。 ↩ ↩2 ↩3

  5. Bind AI. (2025, October 3). How to create agents with Claude Agents SDK. https://blog.getbind.co/2025/10/03/how-to-create-agents-with-claude-agents-sdk/ 。原链接现重定向到 无日期路径。这是所提供 Reddit 帖子链接的原文;作为入门阅读线索,不将其示例全部视为可直接运行的实现。 ↩

  6. Awan, A. A. (2025, September 29). Claude Agent SDK tutorial: Create agents using Claude Sonnet 4.5. DataCamp. https://www.datacamp.com/tutorial/how-to-use-claude-agent-sdk 。日期采用页面标示日期;页面存在后续更新内容,历史安装行为另以固定版本材料核对。 ↩

  7. Sider. (2025, October 14). 如何開始使用 Claude Code SDK(保證不燒腦、不搞砸你的專案). https://sider.ai/zh-TW/blog/ai-tools/how-to-get-started-with-claude-code-sdk-without-breaking-your-brain-or-your-build 。日期为页面标示的更新日期。正文安装与调用示例实际使用普通 Anthropic API SDK;本文引用它说明资料中的命名混淆。 ↩

  8. Anthropic. (2025, October 15). Claude Agent SDK for Python (Version 0.1.4) [Computer software]. PyPI. https://pypi.org/project/claude-agent-sdk/0.1.4/ 。项目入口随版本更新;历史前置条件与示例依据固定版本页面。 ↩ ↩2 ↩3

  9. Anthropic. (2025). subprocess_cli.py (Claude Agent SDK for Python, Version 0.1.4) [Source code]. GitHub. https://github.com/anthropics/claude-agent-sdk-python/blob/v0.1.4/src/claude_agent_sdk/_internal/transport/subprocess_cli.py ↩ ↩2 ↩3

  10. Orosz, G. (2025, September 23). How Claude Code is built. The Pragmatic Engineer. https://newsletter.pragmaticengineer.com/p/how-claude-code-is-built 。依据公开可读的采访导言与技术栈概述,不引用付费区未读取的内容。 ↩ ↩2

  11. Anthropic. (2025, October 16). Equipping agents for the real world with Agent Skills. https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills 。依据首次发布的 Skills 机制说明;页面另有 2025 年 12 月的更新,不计入本文当时的能力判断。 ↩ ↩2

  12. AI猿智慧. (2025, October 23). Agent Skills 逆向工程解密,用Strands Agents SDK完美实现Agent Skills. 53AI. https://www.53ai.com/news/LargeLanguageModel/2025102324087.html 。依据页面署名、发布日期与公开可读内容;页面提示部分内容需登录,不将标题中的“完美实现”视为已经验证的等价性结论。 ↩ ↩2

  13. Liguori, C. (2025, May 16). Introducing Strands Agents, an open source AI agents SDK. AWS Open Source Blog. https://aws.amazon.com/blogs/opensource/introducing-strands-agents-an-open-source-ai-agents-sdk/ 。用于核实当时的 Apache 2.0 开源许可、非 AWS 模型支持,以及官方披露的生产使用案例;不据此推断与 Claude Code 的采用规模或稳定性高低。 ↩ ↩2

  14. OpenAI. (2025, October 24). OpenAI Agents SDK (Version 0.4.2) [Documentation]. GitHub. https://github.com/openai/openai-agents-python/blob/a30c32e722a4cdb761fe8b250606757ec8581296/docs/index.md 。此链接固定到 v0.4.2 随附的文档,供核查 11 月 3 日初步选型时的功能与说明;它是第一轮调研的版本锚点,不代表 11 月 10 日的最新版本。官方文档入口持续更新,不以其中晚于 2025 年 11 月 3 日的内容作为本文选型依据。 ↩

  15. OpenAI. (2025, October 24). OpenAI Agents SDK for Python (Version 0.4.2) [Computer software]. GitHub. https://github.com/openai/openai-agents-python/tree/a30c32e722a4cdb761fe8b250606757ec8581296 。截至 2025 年 11 月 3 日 20:00(北京时间),最新已发布版本为 v0.4.2;发布日期可通过 GitHub Release 和 PyPI 版本记录交叉核查。源码与上一条文档均固定到提交 a30c32e722a4cdb761fe8b250606757ec8581296,作为历史事实的参考锚点,不表示已确认我当时实际安装或测试了这一版本。官方仓库入口另行保留,当前主分支不作为历史能力证明。 ↩

  16. Anthropic. (n.d.). Start building with Claude. Claude Platform Docs. Retrieved November 13, 2026, from https://platform.claude.com/docs/en/home 。用于辨明用户所指的开发者平台入口;当前页面已有后续新增产品,不将其全部功能或当前品牌布局倒推为 2025 年的选项。查看过平台文档及选择 SDK 的取舍来自本人回忆。 ↩

  17. Anthropic. (2025, May 22). New capabilities for building agents on the Anthropic API. https://claude.com/blog/agent-capabilities-api 。用于核对当时已发布的代码执行、MCP connector、Files API 等能力,不据此声称平台具备与 Claude Agent SDK 完全相同的执行环境。 ↩

  18. Alwell, K., & Jain, G. (2025, June 25). Deep Research API with the Agents SDK. OpenAI Cookbook. https://developers.openai.com/cookbook/examples/deep_research_api/introduction_to_deep_research_api_agents 。这是当时已经使用 Agents SDK 编排研究应用的官方示例,不代表本文采用其完整架构。 ↩

  19. SST. (2025). OpenCode: README (Commit 93e52f7ecfd8267038fba0e859c347740e3c260b) [Source code documentation]. GitHub. https://github.com/anomalyco/opencode/blob/93e52f7ecfd8267038fba0e859c347740e3c260b/README.md 。快照提交于 2025 年 11 月 3 日 07:09 UTC,早于本文归档时间;原仓库为 sst/opencode,现地址为 anomalyco/opencode。 ↩

  20. Anthropic. (n.d.). Agent SDK overview. Claude Code Docs. Retrieved November 13, 2026, from https://code.claude.com/docs/en/agent-sdk/overview ↩

  21. Anthropic. (n.d.). Hosting the Agent SDK. Claude Code Docs. Retrieved November 13, 2026, from https://code.claude.com/docs/en/agent-sdk/hosting ↩

  22. musistudio. (n.d.). Claude Code Router [Source code documentation]. GitHub. Retrieved November 13, 2026, from https://github.com/musistudio/claude-code-router 。当前项目文档仅用于解释路由与接口适配的用途;当时考虑过 CCR 及优先直连的决定来自本人回忆,不将当前功能清单倒推为 2025 年的能力,也不声称当时已实际采用 CCR。 ↩

  23. DeepSeek. (2025, August 21). DeepSeek-V3.1 发布. DeepSeek API Docs. https://api-docs.deepseek.com/zh-cn/news/news250821/ ↩

  24. Anthropic. (2025). types.py (Claude Agent SDK for Python, Version 0.1.4) [Source code]. GitHub. https://github.com/anthropics/claude-agent-sdk-python/blob/v0.1.4/src/claude_agent_sdk/types.py ↩

  25. Anthropic. (2025, November 19). Claude Agent SDK for Python (Version 0.1.8) [Computer software]. PyPI. https://pypi.org/project/claude-agent-sdk/0.1.8/ 。仅用于说明文章日期之后发生的安装方式变化。 ↩

  26. Anthropic. (n.d.). Changelog: Claude Agent SDK for Python. GitHub. Retrieved November 13, 2026, from https://github.com/anthropics/claude-agent-sdk-python/blob/main/CHANGELOG.md 。0.1.8 条目记录开始捆绑 Claude Code;用于历史核验。 ↩

© 2025 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2025-11-10). Why I chose the Claude Agent SDK for a travel-planning prototype. https://caiborui.com/blog/2025-11-10-zh-travel-planner-claude-agent-sdk-selection-entrans

@misc{borui2025-4bcbb207,
  author = {borui},
  title = {{Why I chose the Claude Agent SDK for a travel-planning prototype}},
  year = {2025},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2025-11-10-zh-travel-planner-claude-agent-sdk-selection-entrans}
}