SDK
FAQ

FAQ

Do I need a CodeSandbox workspace to be able to use the SDK?

Yes. You need a CodeSandbox API key to use CodeSandbox SDK, which you can get by creating a CodeSandbox account (opens in a new tab).

How can I revoke my API key?

To revoke an API key, go to the "Permissions" tab of your Workspace Settings (opens in a new tab) and click the respective token under "API Access". Then, click "Remove Token" from the bottom of that modal.

I have hit a rate limit - what should I do?

Please subscribe to a CodeSandbox plan that includes the most suitable rate limit for you. In case you're on our Builder plan already, please contact us (opens in a new tab) to discuss an Enterprise plan.

My iframe previews always show a confirmation prompt. Can I remove this?

Yes! This prompt has been implemented as a part of our phishing prevention measures. You can remove it by taking out any Pro plan (opens in a new tab) on the account that you're using with CodeSandbox SDK.

Can I change the specs of the VMs?

Currently, we only allow changing the default specs for all VMs created with the SDK. You can change your VM tier using the steps detailed here (opens in a new tab)

Are VMs created by the SDK covered by any cybersecurity certifications?

CodeSandbox and it's infrastructure, including VMs are SOC 2 Type II compliant. You can read our SOC 2 announcement on our blog (opens in a new tab)

Is it possible to self-host CodeSandbox SDK?

No, for now we don't provide a self-host option.

Are there any SDK rate limits?

Yes. The SDK has rate limits on concurrent VMs, number of requests per hour, and number of sandboxes created per hour. These limits vary depending on the CodeSandbox plan, as explained on our Pricing page (opens in a new tab).

Can I use the same CodeSandbox plan for SDK and non-SDK usage?

Yes. Your CodeSandbox plan will allow you to use both, so you can leverage the SDK for programmatic sandbox creation, while still allowing your team to use CodeSandbox for their development.

Does the CodeSandbox SDK use CodeSandbox Sandboxes or Devboxes?

While the SDK code only mentions "sandbox", the actual environments that it uses are officially called "Devboxes" (which use VMs). If you need more details about these VMs, please refer to the "Devbox" section of the CodeSandbox documentation for further information and pricing.