The first step is uploading your package to the Foundry Marketplace:
- Download the project's
.zipfile from this repository - Access your enrollment's marketplace at:
{enrollment-url}/workspace/marketplace - In the marketplace interface, initiate the upload process:
- Select or create a store in your preferred project folder
- Click the "Upload to Store" button
- Select your downloaded
.zipfile
After upload, you'll need to install the package in your environment. For detailed instructions, see the official Palantir documentation.
The installation process has four main stages:
-
General Setup
- Configure package name
- Select installation location
-
Input Configuration
- Configure any required inputs. If no inputs are needed, proceed to next step
- Check project documentation for specific input requirements
-
Content Review
- Review resources to be installed such as Developer Console, the Ontology, and Functions
-
Validation
- System checks for any configuration errors
- Resolve any flagged issues
- Initiate installation
Some packages include applications built with the Ontology SDK. These require additional setup:
-
Locate the SDK application code in the
app/directory of the project repository -
The following details will need to added to the source code for the application.
- Navigate to Developer Console:
{enrollment-url}/workspace/developer-console - Find the installed application
- Copy the following details:
- CLIENT ID
- Enrollment URL
{enrollment-url}.palantirfoundry.com
- Navigate to Developer Console:
-
Configure your development environment:
- Add to
env.developmentfile underapp/ - (optional) Configure CORS in your control panel to allow
http://localhost:8080
- Add to
To run the application locally:
- Access the Developer Console's "Start Developing" section
- Follow the "Add Ontology SDK" setup process)
- In the
/appdirectory, start the development server:This will launch your application atnpm run dev
http://localhost:8080
For website hosting setup:
-
Update
.env.productionwith your production configuration -
If using Foundry website hosting, configure
foundry.config.json:{ "foundryUrl": "https://<YOUR ENROLLMENT>.palantirfoundry.com", "site": { "application": "<APPLICATION RID FROM DEV CONSOLE>", "directory": "./dist", "autoVersion": { "type": "git-describe", "tagPrefix": "" } } } -
Follow the deployment instructions in your widget's developer console
Note: For production deployments, set VITE_FOUNDRY_REDIRECT_URL in .env.production if you haven't specified a hosting URL. You can verify your production environment variables using the test in env.test.ts.

