When working with VS Code in Foundry, you can choose between two developer environment options: use VS Code workspaces deployed on Palantir infrastructure, or install the Palantir extension in your local VS Code application. This guide helps you understand the differences and choose the right option for your needs.
| VS Code workspaces | Palantir extension for local development | |
|---|---|---|
| Setup | No installation required; select Open in VS Code | Download and install the extension locally |
| Environment | Deployed on Palantir infrastructure | Runs on your local machine |
| Data handling | Data stays on platform (except for displayed preview results) | Streams data to local memory during preview |
| Access requirements | Code Workspaces enabled | Administrator approval plus download permissions |
| Third-party extensions | Not supported | Supported (if allowed by your organization) |
Best for the following:
Best for the following:
Requirements:
s3-proxy:datasets-read and api:datasets-read) on all input datasets.
Data handling: Data remains on Palantir infrastructure during development. Only preview results (up to 1000 rows) are displayed in the results table. No input datasets are streamed to your machine.
Security controls: Strict access controls and audit logging are maintained. No risk of accidental data leakage to local machines.
Review our documentation on security considerations for local development.
If you are unsure which option is best for you, we recommend starting with VS Code workspaces. This option requires no setup and maintains the strictest security controls. You can always switch to local development later if you need additional flexibility.
For detailed local preview setup instructions (including Java transforms), review our documentation on previewing transforms in local development.
For more information, review additional documentation: