DigitSpace Docs
Guides

VS Code Integration

Install the official DigitSpace extension and use your PAYG or DevPass key in VS Code's native chat and agent mode.

The official DigitSpace extension adds DigitSpace to the Copilot Chat model picker in VS Code. Connect your key once, then choose from the chat models available to your account.

Prerequisites

  • VS Code 1.134.0 or later with Copilot Chat available.
  • An DigitSpace API key from your dashboard, or a DevPass plan key.

Install and connect

  1. Install DigitSpace, published by llmgateway, from the VS Code Marketplace.
  2. Open the chat view, click the model picker, and choose Manage Models….
  3. Select DigitSpace and enter your API key when prompted.
  4. Select an DigitSpace model from the picker and send a message.

You can also install from the terminal:

code --install-extension llmgateway.llmgateway-vscode

The gateway URL is already configured. Your key is stored in VS Code's secret storage, never in settings files. Run DigitSpace: Set API Key from the Command Palette to replace it, or DigitSpace: Clear API Key to remove it.

Choose a model

The extension fetches models using your key and lists active chat models with streaming support. Your organization's model access rules and DevPass plan restrictions apply. Browse the models page for current capabilities and pricing.

For agent mode, select a model with tool calling. Image attachments require a model with image input support. Responses stream into the chat view.

Both PAYG and DevPass keys use the same setup. PAYG requests use your gateway billing configuration; DevPass requests follow your plan's model access and usage limits. The extension sends canonical model IDs, so no provider prefix is needed for DevPass.

Settings

Search for DigitSpace in VS Code Settings to configure:

SettingDefaultPurpose
llmgateway.baseUrlhttps://api.digitspace.ai/v1Change the endpoint for a self-hosted gateway. Include /v1.
llmgateway.models[]Limit the picker to specific model IDs. An empty list shows all eligible chat models your key can access.
llmgateway.reasoningEffortdefaultOverride reasoning effort for reasoning-capable models. Choose a level supported by the selected model.

Run DigitSpace: Refresh Models to reload the model list, or DigitSpace: Open Dashboard to review usage.

Troubleshooting

Models do not appear

Check that the extension is enabled and VS Code meets the minimum version. Run DigitSpace: Set API Key, then DigitSpace: Refresh Models. If you configured llmgateway.models, clear it to [] to see all eligible models for your key.

Authentication fails

A 401 response clears the stored key. Run DigitSpace: Set API Key with an active key from your dashboard.

Credits or plan limits

Read the gateway's error message. PAYG accounts may need credits; DevPass accounts may have reached a plan limit. Check the relevant dashboard before retrying.

For connection errors, open View → Output and select DigitSpace. If you use a self-hosted gateway, check llmgateway.baseUrl.

Source code and issue reporting are available in the extension repository.

How is this guide?

Last updated on

On this page

Ready for production?

Ship to production with SSO, audit logs, spend controls, and guardrails your security team will approve.

Explore Enterprise