Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.
The claude-sdk runner uses Anthropic’s @anthropic-ai/claude-code Node.js SDK directly within the agent process — no subprocess, no CLI binary, no shell invocation. The model runs in-process, which means lower latency, better error handling, and access to the full SDK feature set including tool use and streaming.
No additional binary to install. The SDK runs in-process within the RemoteAgent.CHAT binary.
Setup
During remoteagent init, choose claude-sdk from the interactive list. When prompted for your API key, paste your Anthropic key:
remoteagent init# ? Which runner? claude-sdk# ? Anthropic API key: sk-ant-...
The key is saved to ~/.remoteagent/agents/{agentId}.json on your local machine. It is never transmitted to RemoteAgent.CHAT servers. Each project can use a different key — useful if you have multiple projects billed to separate Anthropic accounts.To use this runner from the command line without the interactive wizard:
remoteagent init --runner claude-sdk
How it works
When your agent receives a command, the claude-sdk runner calls the @anthropic-ai/claude-code SDK with the prompt and the current working directory. The SDK handles:
Model selection (latest Claude model configured in the SDK)
Tool use (file read/write, bash execution, etc.)
Streaming output chunks back to the agent
Each chunk is forwarded to Telegram as it arrives, so you see the response progressively rather than waiting for the full completion.
Pros and cons
Pros
Cons
Best output quality — full SDK capability
Requires a paid Anthropic API key
Lowest latency — no subprocess overhead
API usage is billed per token
Best error handling and retry logic
—
Access to all Claude tools (bash, file I/O)
—
No extra installation step
—
API key security
Your Anthropic API key is stored locally in ~/.remoteagent/agents/{agentId}.json and
is never sent to RemoteAgent.CHAT servers or included in any network request
made by the relay. The SDK calls Anthropic’s API directly from your machine.
The key is stored in plain text in the config file. Make sure ~/.remoteagent/ has appropriate permissions:
API usage is billed by Anthropic based on input and output tokens. RemoteAgent.CHAT does not add any markup or take a cut of API costs. Your Anthropic account is billed directly for all model usage.Refer to Anthropic’s pricing page for current token rates.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"RemoteAgent.CHAT","colors":{"primary":"#1B84FF","light":"#60AEFF","dark":"#0D5ECC"},"logo":{"light":"https://mintcdn.com/remoteagentchat/px6-PCumF-TyyIWF/logo/light.svg?fit=max\u0026auto=format\u0026n=px6-PCumF-TyyIWF\u0026q=85\u0026s=73d901cf8b03ed547c879ca4b742ae75","dark":"https://mintcdn.com/remoteagentchat/px6-PCumF-TyyIWF/logo/dark.svg?fit=max\u0026auto=format\u0026n=px6-PCumF-TyyIWF\u0026q=85\u0026s=d14b2e8d649edd085e6725a3bf57b7c1"},"favicon":"https://mintlify.s3.us-west-1.amazonaws.com/remoteagentchat/favicon.svg","navbar":{"links":[{"href":"https://remoteagent.chat","label":"remoteagent.chat"}],"primary":{"type":"button","label":"Get started free","href":"https://remoteagent.chat/signup"}},"footer":{"socials":{"github":"https://github.com/ggiacomo/docs"}},"seo":{},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"remoteagent.chat","icon":"house","href":"https://remoteagent.chat"},{"anchor":"Telegram bot","icon":"paper-plane","href":"https://t.me/remoteagent_bot"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"remoteagentchat","hasAudioNarration":false,"actualSubdomain":"remoteagentchat","customDomains":["docs.remoteagent.chat"],"gitSource":{"type":"github","owner":"ggiacomo","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94a1e2537587934550871:success","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Runners","count":9},{"language":"default","tag":"Using the Bot","count":3},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Under the Hood","count":3},{"language":"default","tag":"Platform","count":2},{"language":"default","tag":"Reference","count":1},{"language":"default","tag":"Support","count":1},{"language":"default","tag":"Overview","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"runners/claude-sdk","slug":"/runners/claude-sdk","pageMetadata":{"title":"claude-sdk","description":"Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.","href":"/runners/claude-sdk"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`claude-sdk`}),` runner uses Anthropic’s `,_jsx(_components.code,{children:`@anthropic-ai/claude-code`}),` Node.js SDK directly within the agent process — no subprocess, no CLI binary, no shell invocation. The model runs in-process, which means lower latency, better error handling, and access to the full SDK feature set including tool use and streaming.`]}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`An `,_jsx(_components.strong,{children:`Anthropic API key`}),` (`,_jsx(_components.code,{children:`sk-ant-...`}),`). Get one at `,_jsx(_components.a,{href:`https://console.anthropic.com`,children:`console.anthropic.com`}),`.`]}),`\n`,_jsx(_components.li,{children:`No additional binary to install. The SDK runs in-process within the RemoteAgent.CHAT binary.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`setup`,children:`Setup`}),`\n`,_jsxs(_components.p,{children:[`During `,_jsx(_components.code,{children:`remoteagent init`}),`, choose `,_jsx(_components.code,{children:`claude-sdk`}),` from the interactive list. When prompted for your API key, paste your Anthropic key:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`remoteagent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` init`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ? Which runner? claude-sdk`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ? Anthropic API key: sk-ant-...`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The key is saved to `,_jsx(_components.code,{children:`~/.remoteagent/agents/{agentId}.json`}),` on your local machine. It is never transmitted to RemoteAgent.CHAT servers. Each project can use a different key — useful if you have multiple projects billed to separate Anthropic accounts.`]}),`\n`,_jsx(_components.p,{children:`To use this runner from the command line without the interactive wizard:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`remoteagent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` init`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --runner`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` claude-sdk`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsxs(_components.p,{children:[`When your agent receives a command, the `,_jsx(_components.code,{children:`claude-sdk`}),` runner calls the `,_jsx(_components.code,{children:`@anthropic-ai/claude-code`}),` SDK with the prompt and the current working directory. The SDK handles:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Model selection (latest Claude model configured in the SDK)`}),`\n`,_jsx(_components.li,{children:`Tool use (file read/write, bash execution, etc.)`}),`\n`,_jsx(_components.li,{children:`Streaming output chunks back to the agent`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Each chunk is forwarded to Telegram as it arrives, so you see the response progressively rather than waiting for the full completion.`}),`\n`,_jsx(Heading,{level:`2`,id:`pros-and-cons`,children:`Pros and cons`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Pros`}),_jsx(_components.th,{children:`Cons`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Best output quality — full SDK capability`}),_jsx(_components.td,{children:`Requires a paid Anthropic API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Lowest latency — no subprocess overhead`}),_jsx(_components.td,{children:`API usage is billed per token`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Best error handling and retry logic`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Access to all Claude tools (bash, file I/O)`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`No extra installation step`}),_jsx(_components.td,{children:`—`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`api-key-security`,children:`API key security`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Your Anthropic API key is stored locally in `,_jsx(_components.code,{children:`~/.remoteagent/agents/{agentId}.json`}),` and\nis `,_jsx(_components.strong,{children:`never`}),` sent to RemoteAgent.CHAT servers or included in any network request\nmade by the relay. The SDK calls Anthropic’s API directly from your machine.`]})}),`\n`,_jsxs(_components.p,{children:[`The key is stored in plain text in the config file. Make sure `,_jsx(_components.code,{children:`~/.remoteagent/`}),` has appropriate permissions:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chmod`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 700`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/.remoteagent`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`chmod`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 600`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/.remoteagent/agents/`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`*`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`.json`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`costs`,children:`Costs`}),`\n`,_jsx(_components.p,{children:`API usage is billed by Anthropic based on input and output tokens. RemoteAgent.CHAT does not add any markup or take a cut of API costs. Your Anthropic account is billed directly for all model usage.`}),`\n`,_jsxs(_components.p,{children:[`Refer to `,_jsx(_components.a,{href:`https://www.anthropic.com/pricing`,children:`Anthropic’s pricing page`}),` for current token rates.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"claude-sdk","description":"Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.","href":"/runners/claude-sdk"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Requirements","slug":"requirements","depth":2,"children":[]},{"title":"Setup","slug":"setup","depth":2,"children":[]},{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Pros and cons","slug":"pros-and-cons","depth":2,"children":[]},{"title":"API key security","slug":"api-key-security","depth":2,"children":[]},{"title":"Costs","slug":"costs","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"remoteagentchat","siteName":"RemoteAgent.CHAT","title":"claude-sdk - RemoteAgent.CHAT","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-13T21:06:25.449Z","originalFileLocation":"runners/claude-sdk.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.\">\u003cmeta data-mint-head name=\"application-name\" content=\"RemoteAgent.CHAT\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"claude-sdk - RemoteAgent.CHAT\">\u003cmeta data-mint-head property=\"og:description\" content=\"Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"RemoteAgent.CHAT\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.remoteagent.chat/runners/claude-sdk\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://remoteagentchat.mintlify.site/_mintlify/api/og/v2?division=Runners\u0026amp;title=claude-sdk\u0026amp;description=Uses+the+official+%40anthropic-ai%2Fclaude-code+SDK+in-process+for+the+lowest+latency+with+Anthropic+models.\u0026amp;theme=bfb3e23b8019de3f9df06c5e\u0026amp;signature=12727f64cc0667ab7e197dbe0382aaa813b6560795cbd7cff37927e3471fa4c4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"claude-sdk - RemoteAgent.CHAT\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://remoteagentchat.mintlify.site/_mintlify/api/og/v2?division=Runners\u0026amp;title=claude-sdk\u0026amp;description=Uses+the+official+%40anthropic-ai%2Fclaude-code+SDK+in-process+for+the+lowest+latency+with+Anthropic+models.\u0026amp;theme=bfb3e23b8019de3f9df06c5e\u0026amp;signature=12727f64cc0667ab7e197dbe0382aaa813b6560795cbd7cff37927e3471fa4c4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/remoteagentchat/rKg0QyTCj8CadLFa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"RemoteAgent.CHAT\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1B84FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.remoteagent.chat/runners/claude-sdk\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/runners/claude-sdk.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.remoteagent.chat/#organization\",\"name\":\"RemoteAgent.CHAT\",\"url\":\"https://docs.remoteagent.chat\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/remoteagentchat/px6-PCumF-TyyIWF/logo/light.svg?fit=max\u0026auto=format\u0026n=px6-PCumF-TyyIWF\u0026q=85\u0026s=73d901cf8b03ed547c879ca4b742ae75\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.remoteagent.chat#website\",\"name\":\"RemoteAgent.CHAT\",\"url\":\"https://docs.remoteagent.chat\",\"publisher\":{\"@id\":\"https://docs.remoteagent.chat/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.remoteagent.chat/runners/claude-sdk#webpage\",\"url\":\"https://docs.remoteagent.chat/runners/claude-sdk\",\"name\":\"claude-sdk\",\"description\":\"Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.\",\"dateModified\":\"2026-04-13T21:06:25.449Z\",\"isPartOf\":{\"@id\":\"https://docs.remoteagent.chat#website\"},\"breadcrumb\":{\"@id\":\"https://docs.remoteagent.chat/runners/claude-sdk#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.remoteagent.chat/runners/claude-sdk#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Runners\",\"item\":\"https://docs.remoteagent.chat/runners/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"claude-sdk\",\"item\":\"https://docs.remoteagent.chat/runners/claude-sdk\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.remoteagent.chat/runners/claude-sdk#article\",\"headline\":\"claude-sdk\",\"name\":\"claude-sdk\",\"description\":\"Uses the official @anthropic-ai/claude-code SDK in-process for the lowest latency with Anthropic models.\",\"url\":\"https://docs.remoteagent.chat/runners/claude-sdk\",\"mainEntityOfPage\":{\"@id\":\"https://docs.remoteagent.chat/runners/claude-sdk#webpage\"},\"dateModified\":\"2026-04-13T21:06:25.449Z\",\"publisher\":{\"@id\":\"https://docs.remoteagent.chat/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.remoteagent.chat#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"RemoteAgent.CHAT\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"RemoteAgent.CHAT\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/runners/claude-sdk.md","siteName":"RemoteAgent.CHAT","nav":{"global":{"anchors":[{"anchor":"remoteagent.chat","icon":"house","href":"https://remoteagent.chat"},{"anchor":"Telegram bot","icon":"paper-plane","href":"https://t.me/remoteagent_bot"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Overview","pages":[{"title":"What is RemoteAgent.CHAT?","href":"/introduction"}]},{"group":"Getting Started","pages":[{"title":"Quickstart","href":"/getting-started/quickstart"},{"title":"Pairing","href":"/getting-started/pairing"},{"title":"Best Practices","href":"/getting-started/best-practices"}]},{"group":"Runners","pages":[{"title":"Runners overview","href":"/runners/overview"},{"title":"claude-code","description":"The default runner. Uses the Claude CLI binary with OAuth token or subscription login — no API key required with a Claude Pro or Max plan.","href":"/runners/claude-code"},{"title":"claude-sdk","href":"/runners/claude-sdk"},{"title":"opencode","description":"Use OpenCode as the default AI runner — open-source terminal AI coding agent by the SST team, supports 75+ providers with no API key required.","href":"/runners/opencode"},{"title":"codex","href":"/runners/codex"},{"title":"gemini","href":"/runners/gemini"},{"title":"aider","href":"/runners/aider"},{"title":"openclaw","href":"/runners/openclaw"},{"title":"custom","href":"/runners/custom"}]},{"group":"Using the Bot","pages":[{"title":"Sending commands","href":"/bot/sending-commands"},{"title":"Multi-project","href":"/bot/multi-project"},{"title":"Offline alerts","href":"/bot/offline-alerts"}]},{"group":"Platform","pages":[{"title":"Dashboard","href":"/dashboard"},{"title":"Pricing","href":"/pricing"}]},{"group":"Under the Hood","pages":[{"title":"Architecture","href":"/under-the-hood/architecture"},{"title":"Services","href":"/under-the-hood/services"},{"title":"Security","href":"/under-the-hood/security"}]},{"group":"Reference","pages":[{"title":"CLI reference","href":"/cli-reference"}]},{"group":"Support","pages":[{"title":"FAQ","href":"/faq"}]}]}]},"basePath":"","title":"claude-sdk - RemoteAgent.CHAT","deploymentId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","buildId":"dpl_vSEmv961Ncyvz1psVwgUnTXQMSYk","dynamics":[],"chunks":[]}