| 1 | # @continuedev/sdk |
| 2 | |
| 3 | > **⚠️ EXPERIMENTAL: This package is in early development and subject to frequent breaking changes without notice.** |
| 4 | |
| 5 | This SDK provides programmatic access to Continue's Hub APIs and functionality. |
| 6 | |
| 7 | ## Overview |
| 8 | |
| 9 | The Continue SDK is structured into separate language-specific packages, currently with implementations for TypeScript and Python, with more languages planned for the future: |
| 10 | |
| 11 | - **TypeScript SDK**: Located in the `/typescript` directory, providing a drop-in replacement for OpenAI's TypeScript client libraries |
| 12 | - **Python SDK**: Located in the `/python` directory, providing a drop-in replacement for OpenAI's Python client libraries |
| 13 | - **Additional languages**: More language implementations are planned to be added in the future |
| 14 | |
| 15 | Each package includes: |
| 16 | |
| 17 | 1. OpenAPI-generated clients for the Continue Hub API |
| 18 | 2. A wrapper layer that exposes a `Continue.from()` method to easily initialize and use Continue assistants with an OpenAI-compatible interface |
| 19 | |
| 20 | ## For End Users |
| 21 | |
| 22 | End users should install the published packages directly: |
| 23 | |
| 24 | - For TypeScript/JavaScript: `npm install @continuedev/sdk` |
| 25 | - For Python: `pip install continuedev` |
| 26 | - For other languages: Check back for new language support |
| 27 | |
| 28 | Each published package includes its own documentation. |
| 29 | |
| 30 | ## For Developers |
| 31 | |
| 32 | ### Development |
| 33 | |
| 34 | ```bash |
| 35 | # Install dependencies |
| 36 | npm install |
| 37 | |
| 38 | # Generate API clients |
| 39 | npm run generate-client:ALL |
| 40 | |
| 41 | # Start Swagger UI for API exploration |
| 42 | npm run swagger-ui |
| 43 | ``` |