{"_id":"@100xprompt/sdk","_rev":"230-cf36285c49f3e251ac3f6d7df9a682ae","name":"@100xprompt/sdk","dist-tags":{"latest":"0.1.110","dev":"0.0.0-dev-202607191034"},"versions":{"0.0.0-dev-202607191034":{"name":"@100xprompt/sdk","version":"0.0.0-dev-202607191034","license":"MIT","_id":"@100xprompt/sdk@0.0.0-dev-202607191034","maintainers":[{"name":"100xprompt","email":"nipurnagarwal26@gmail.com"}],"dist":{"shasum":"afc662b0fae15ad711ac935d7301ccf5b6a94274","tarball":"https://registry.npmjs.org/@100xprompt/sdk/-/sdk-0.0.0-dev-202607191034.tgz","fileCount":103,"integrity":"sha512-HlUhvvaRVy+B2vJF1194nItb0W84LUzPGdSTmr25k/tsMEOdDNV2mQet/Fw9OEPk2ErBF/Wt6MGs7ebSJed0Fg==","signatures":[{"sig":"MEYCIQCSUaJw7pkAzWMzRch420KigE7CzMBShSjPcYUwRj5PAAIhAN7ApwnScPE1hkzAobo7Fw6OmCzLfryIAOSlCxWBaBb8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":793012},"type":"module","_from":"file:100xprompt-sdk-0.0.0-dev-202607191034.tgz","$schema":"https://json.schemastore.org/package.json","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./v2":{"types":"./dist/v2/index.d.ts","import":"./dist/v2/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js"},"./v2/client":{"types":"./dist/v2/client.d.ts","import":"./dist/v2/client.js"},"./v2/server":{"types":"./dist/v2/server.d.ts","import":"./dist/v2/server.js"}},"scripts":{"build":"./script/build.ts","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"100xprompt","email":"nipurnagarwal26@gmail.com"},"_resolved":"/Users/nipurnagarwal/Desktop/100x/100xprompt/packages/sdk/js/100xprompt-sdk-0.0.0-dev-202607191034.tgz","_integrity":"sha512-HlUhvvaRVy+B2vJF1194nItb0W84LUzPGdSTmr25k/tsMEOdDNV2mQet/Fw9OEPk2ErBF/Wt6MGs7ebSJed0Fg==","deprecated":"Superseded by 0.1.72. Older versions are unsupported.","_npmVersion":"11.13.0","directories":{},"_nodeVersion":"22.23.1","dependencies":{},"publishConfig":{"directory":"dist"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.8.2","@types/node":"22.13.9","@tsconfig/node22":"22.0.2","@hey-api/openapi-ts":"0.88.1","@typescript/native-preview":"7.0.0-dev.20251207.1"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.0.0-dev-202607191034_1784457653417_0.8042539814124932","host":"s3://npm-registry-packages-npm-production"}},"0.1.110":{"_id":"@100xprompt/sdk@0.1.110","bugs":{"url":"https://github.com/nipurn123/100xprompt-sdk/issues"},"dist":{"shasum":"88c20ffe0090a4edc79d39d1748955071e3de536","tarball":"https://registry.npmjs.org/@100xprompt/sdk/-/sdk-0.1.110.tgz","fileCount":40,"integrity":"sha512-rwA1ieyQrsUi4IFX68V4LdMQyX5g97skfzx3wMxFgEsYW6GxM1TTSynzIlOAzCgXbuV+hTntkoe2tTV62PNrIA==","signatures":[{"sig":"MEQCIA6Upq1DxF2vGHYGT/VO6TYZMFMqDREdpKxPr4NZ+SbKAiABivAu30BU4V9ogB0PW81vrK5ETyxKSO9goLWOc/q+7g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCnJtXSYwsBIHI2PVFHA29eyFIOp3qCPxkk0xfihPu44gIhANWJBXjsbDKJ7klRBeOHF+/E2XlDWM5NkGB3um1AVFhP"}],"unpackedSize":803001},"main":"./dist/index.js","name":"@100xprompt/sdk","type":"module","types":"./dist/index.d.ts","author":{"name":"100XPrompt"},"$schema":"https://json.schemastore.org/package.json","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./client":{"types":"./dist/client.d.ts","import":"./dist/client.js","default":"./dist/client.js"},"./server":{"types":"./dist/server.d.ts","import":"./dist/server.js","default":"./dist/server.js"}},"gitHead":"2428982547c8dafd4284dc9cf1f7eecea6f72a41","license":"UNLICENSED","private":false,"scripts":{"build":"./script/build.ts","typecheck":"tsc --noEmit"},"version":"0.1.110","_npmUser":{"name":"100xprompt","email":"nipurnagarwal26@gmail.com"},"homepage":"https://100xprompt.com","keywords":["100xprompt","ai","agent","coding-agent","llm","sdk","client","typescript","mcp"],"repository":{"url":"git+https://github.com/nipurn123/100xprompt-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for 100XPrompt — a fully-typed client plus server/TUI launchers for the open source AI coding agent.","directories":{},"maintainers":[{"name":"100xprompt","email":"nipurnagarwal26@gmail.com"}],"_nodeVersion":"22.23.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.9","@tsconfig/node22":"^22.0.2","@hey-api/openapi-ts":"0.88.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.110_1789377258956_0.5289275378401928"}}},"time":{"created":"2026-07-03T17:21:18.701Z","modified":"2026-09-14T09:14:19.226Z","0.1.1":"2026-07-03T17:21:19.020Z","0.1.2":"2026-07-03T19:55:49.578Z","0.1.3":"2026-07-03T20:41:43.541Z","0.1.4":"2026-07-04T07:24:48.799Z","0.1.5":"2026-07-04T07:35:38.185Z","0.1.9":"2026-07-06T07:35:43.655Z","0.1.10":"2026-07-06T09:13:41.877Z","0.1.11":"2026-07-06T10:10:13.890Z","0.1.12":"2026-07-06T11:11:30.664Z","0.1.20":"2026-07-08T21:29:10.773Z","0.1.21":"2026-07-09T06:28:46.097Z","0.1.22":"2026-07-09T08:04:34.144Z","0.1.23":"2026-07-11T21:44:17.759Z","0.1.24":"2026-07-12T04:20:59.373Z","0.1.25":"2026-07-12T06:43:33.743Z","0.1.26":"2026-07-12T09:26:04.912Z","0.1.27":"2026-07-12T19:03:17.715Z","0.1.28":"2026-07-16T14:31:08.705Z","0.1.29":"2026-07-16T21:05:10.994Z","0.1.30":"2026-07-16T22:08:56.882Z","0.1.31":"2026-07-17T06:29:17.847Z","0.1.32":"2026-07-17T07:00:34.467Z","0.1.33":"2026-07-17T08:22:18.738Z","0.1.34":"2026-07-17T09:20:52.946Z","0.1.35":"2026-07-17T11:15:38.501Z","0.1.36":"2026-07-17T11:36:08.664Z","0.1.37":"2026-07-17T12:18:12.258Z","0.1.38":"2026-07-17T13:03:45.629Z","0.1.39":"2026-07-17T16:01:00.657Z","0.1.40":"2026-07-17T20:47:12.036Z","0.1.41":"2026-07-17T23:16:42.237Z","0.1.42":"2026-07-18T01:26:28.074Z","0.1.43":"2026-07-18T07:57:12.259Z","0.1.44":"2026-07-18T10:48:31.246Z","0.1.45":"2026-07-18T13:52:27.326Z","0.1.46":"2026-07-18T14:51:14.666Z","0.1.47":"2026-07-18T15:56:30.870Z","0.0.0-dev-202607191034":"2026-07-19T10:40:53.568Z","0.1.48":"2026-07-19T10:50:00.680Z","0.1.49":"2026-07-19T11:52:24.759Z","0.1.50":"2026-07-19T13:51:19.422Z","0.1.51":"2026-07-20T07:29:20.403Z","0.1.52":"2026-07-20T08:26:21.477Z","0.1.53":"2026-07-22T09:11:29.800Z","0.1.54":"2026-07-22T10:11:59.596Z","0.1.55":"2026-07-22T15:23:20.993Z","0.1.56":"2026-07-22T15:50:40.557Z","0.1.57":"2026-07-22T17:40:03.460Z","0.1.58":"2026-07-22T17:58:20.509Z","0.1.59":"2026-07-22T18:44:22.396Z","0.1.60":"2026-07-22T21:37:14.779Z","0.1.61":"2026-07-24T01:26:13.332Z","0.1.62":"2026-07-24T14:47:31.592Z","0.1.63":"2026-07-24T20:48:41.647Z","0.1.64":"2026-07-25T03:47:49.696Z","0.1.65":"2026-07-25T19:55:26.086Z","0.1.72":"2026-07-28T12:21:52.660Z","0.1.110":"2026-09-14T09:14:19.062Z"},"license":"UNLICENSED","maintainers":[{"name":"100xprompt","email":"nipurnagarwal26@gmail.com"}],"readme":"# @100xprompt/sdk\n\nTypeScript SDK for [100XPrompt](https://100xprompt.com) — the AI coding agent.\n\n[![npm](https://img.shields.io/npm/v/@100xprompt/sdk?style=flat-square)](https://www.npmjs.com/package/@100xprompt/sdk)\n\n---\n\nA fully-typed client for the 100XPrompt agent server, plus helpers to spawn the server or the terminal UI from Node or Bun. Use it to drive sessions, stream responses, manage models/providers and MCP servers, and build your own tools, UIs, bots, and CI integrations on top of 100XPrompt.\n\n> **The SDK is a client.** It talks to a running `100xprompt` instance — it does not bundle the agent runtime or any model access. You need the CLI installed and a model configured for it to do anything.\n\n## Prerequisites\n\nInstall the 100XPrompt CLI so the `100xprompt` binary is on your `PATH`:\n\n```bash\ncurl -fsSL https://100xprompt.com/install | bash\n# or\nnpm i -g 100xprompt-cli@latest\n```\n\n## Install\n\n```bash\nnpm install @100xprompt/sdk\n# bun add @100xprompt/sdk · pnpm add @100xprompt/sdk · yarn add @100xprompt/sdk\n```\n\n## Quick start\n\nSpin up a server and a client in one call:\n\n```ts\nimport { create100XPrompt } from \"@100xprompt/sdk\"\n\nconst { client, server } = await create100XPrompt()\n\nconst session = await client.session.create()\n\nawait client.session.prompt({\n  sessionID: session.data.id,\n  parts: [{ type: \"text\", text: \"Write unit tests for src/index.ts\" }],\n})\n\nserver.close()\n```\n\n`create100XPrompt()` spawns `100xprompt serve` on `127.0.0.1:4096` and returns a typed client pointed at it.\n\n## Server and client separately\n\n```ts\nimport { create100XPromptServer, create100XPromptClient } from \"@100xprompt/sdk\"\n\nconst server = await create100XPromptServer({ port: 4096 })\nconst client = create100XPromptClient({ baseUrl: server.url })\n\n// ... use the client ...\n\nserver.close()\n```\n\n## Connect to an existing server\n\nIf a `100xprompt serve` instance is already running — locally or remotely — skip the spawn and point the client at it:\n\n```ts\nimport { create100XPromptClient } from \"@100xprompt/sdk/client\"\n\nconst client = create100XPromptClient({\n  baseUrl: \"https://your-host.example.com\",\n  headers: { Authorization: `Bearer ${process.env.HUNDREDXPROMPT_TOKEN}` },\n})\n```\n\n> Authentication, rate limiting, and access control are enforced by the **server**, not the SDK. The SDK only formats requests — secure your hosted instance accordingly.\n\n## Launch the terminal UI\n\n```ts\nimport { create100XPromptTui } from \"@100xprompt/sdk\"\n\nconst tui = create100XPromptTui({ agent: \"build\" })\n// tui.close() to stop\n```\n\n## Types\n\nEvery request and response type is exported and generated from the server's OpenAPI schema:\n\n```ts\nimport type { X100PromptClientConfig } from \"@100xprompt/sdk\"\n```\n\n## Requirements\n\n- Node.js 18+ (for global `fetch`) or Bun\n- The `100xprompt` CLI on your `PATH` (see [Prerequisites](#prerequisites))\n\n## Documentation\n\nFull docs at [100xprompt.com/docs](https://100xprompt.com/docs).\n\n## License\n\nProprietary. See [LICENSE](./LICENSE).\n","readmeFilename":"README.md","description":"TypeScript SDK for 100XPrompt — a fully-typed client plus server/TUI launchers for the open source AI coding agent.","homepage":"https://100xprompt.com","keywords":["100xprompt","ai","agent","coding-agent","llm","sdk","client","typescript","mcp"],"repository":{"url":"git+https://github.com/nipurn123/100xprompt-sdk.git","type":"git"},"author":{"name":"100XPrompt"},"bugs":{"url":"https://github.com/nipurn123/100xprompt-sdk/issues"}}