The official Visual Studio Code extension for working with Stainless SDK configurations. This extension provides intelligent code editing support, real-time diagnostics, and powerful navigation features for Stainless config files and OpenAPI specifications.
This extension works with Stainless workspaces. To set up a workspace, install the Stainless CLI and run:
stl initThis creates a .stainless/workspace.json file, which the extension uses to identify your Stainless workspace and provide language support for your configuration files.
Install the CLI with Homebrew (recommended for macOS):
brew tap stainless-api/tap
brew install stlOr with Go:
go install 'github.com/stainless-api/stainless-api-cli/cmd/stl@latest'Get instant feedback on your SDK configuration as you type. The language server analyzes your Stainless config and OpenAPI spec in real-time, surfacing errors, warnings, and suggestions directly in your editor so you can catch issues before running a build.
Navigate your API specification with ease using “Go to defintion” to jump directly to schema definitions, parameters, and response types from your Stainless config. Use “Find all references” to see everywhere a schema or endpoint is used across your config and spec files.
Speed up editing your Stainless config with context-aware autocompletion. The language server suggests valid config options, endpoints, and schema names based on your OpenAPI spec.
Resolve diagnostics with a single click using code actions. Some common diagnostics will have an “Autofix”, and all warning diagnostics can be easily ignored.
Codelenses show inline in your OpenAPI spec which schemas and endpoints are configured in your Stainless config. This makes it easy to see at a glance how your API is represented in your SDKs.
See the results of your Stainless transformations instantly as you edit your config. The language server automatically generates and updates your transformed OpenAPI spec in real-time.
Install the extension from the Visual Studio Code Marketplace, or search for "Stainless" in the Extensions view (Ctrl+Shift+X / Cmd+Shift+X).
Once installed, open a workspace containing Stainless configuration files. You can verify the extension is active by checking the status indicator in the bottom right corner of your editor.
For questions, feedback, or issues, please reach out to [email protected] or contact your Stainless sales representative.
This VS Code extension is licensed under the MIT License. The Stainless Language Server is proprietary software, copyright © Stainless API, Inc.






