palantir-install-auth
Install and configure Palantir Foundry SDK authentication with OAuth2 or token auth. Use when setting up a new Foundry integration, configuring API credentials, or initializing the foundry-platform-sdk in your project. Trigger with phrases like "install palantir", "setup palantir", "palantir auth", "configure palantir API key", "foundry SDK setup".
What this skill does
# Palantir Install & Auth
## Overview
Set up the Palantir Foundry Platform SDK (Python or TypeScript) and configure authentication using either bearer tokens for development or OAuth2 client credentials for production. Covers both the Platform SDK for direct API access and the OSDK for Ontology-based workflows.
## Prerequisites
- Python 3.9+ or Node.js 18+
- A Palantir Foundry enrollment with API access enabled
- A third-party application registered in Developer Console (for OAuth2)
- Your Foundry hostname (e.g., `mycompany.palantirfoundry.com`)
## Instructions
### Step 1: Install the SDK
**Python (Platform SDK):**
```bash
set -euo pipefail
pip install foundry-platform-sdk
python -c "import foundry; print(f'foundry-platform-sdk {foundry.__version__} installed')"
```
**Python (OSDK for Ontology access):**
```bash
set -euo pipefail
pip install palantir-sdk
python -c "import palantir; print('palantir-sdk installed')"
```
**TypeScript (OSDK):**
```bash
set -euo pipefail
npm install @osdk/client @osdk/oauth
npx tsc --version
```
### Step 2: Configure Environment Variables
```bash
# .env — never commit this file
FOUNDRY_HOSTNAME=mycompany.palantirfoundry.com
# Option A: Bearer token (development only)
FOUNDRY_TOKEN=eyJhbGciOiJS...
# Option B: OAuth2 client credentials (production)
FOUNDRY_CLIENT_ID=abc123
FOUNDRY_CLIENT_SECRET=secret456
```
### Step 3: Initialize with Bearer Token (Development)
```python
import os
import foundry
client = foundry.FoundryClient(
auth=foundry.UserTokenAuth(
hostname=os.environ["FOUNDRY_HOSTNAME"],
token=os.environ["FOUNDRY_TOKEN"],
),
hostname=os.environ["FOUNDRY_HOSTNAME"],
)
# Verify connection — list datasets
datasets = client.datasets.Dataset.list()
for ds in datasets:
print(f"Dataset: {ds.rid}")
```
### Step 4: Initialize with OAuth2 (Production)
```python
import os
import foundry
auth = foundry.ConfidentialClientAuth(
client_id=os.environ["FOUNDRY_CLIENT_ID"],
client_secret=os.environ["FOUNDRY_CLIENT_SECRET"],
hostname=os.environ["FOUNDRY_HOSTNAME"],
scopes=["api:read-data", "api:write-data"],
)
auth.sign_in_as_service_user()
client = foundry.FoundryClient(
auth=auth,
hostname=os.environ["FOUNDRY_HOSTNAME"],
)
# Verify — fetch ontology metadata
ontologies = client.ontologies.Ontology.list()
for ont in ontologies:
print(f"Ontology: {ont.api_name} (rid={ont.rid})")
```
### Step 5: TypeScript OSDK Setup
```typescript
import { createClient } from "@osdk/client";
import { createConfidentialOauthClient } from "@osdk/oauth";
const oauthClient = createConfidentialOauthClient(
process.env.FOUNDRY_CLIENT_ID!,
process.env.FOUNDRY_CLIENT_SECRET!,
`https://${process.env.FOUNDRY_HOSTNAME}/multipass/api/oauth2/token`,
);
const client = createClient(
`https://${process.env.FOUNDRY_HOSTNAME}`,
"<your-ontology-rid>",
oauthClient,
);
```
### Step 6: Generate Credentials via Developer Console
```text
1. Navigate to https://<hostname>/workspace/developer-console
2. Create a new application > select "Server application"
3. Grant scopes: api:read-data, api:write-data, api:ontology-read
4. Copy client_id and client_secret
5. For quick testing: generate a personal access token under Settings > Tokens
```
## Output
- SDK installed and importable (`foundry-platform-sdk` or `@osdk/client`)
- Environment variables configured for your Foundry enrollment
- Authenticated client verified against the Foundry API
- Ontology or dataset listing confirms read access
## Error Handling
| Error | Cause | Solution |
|-------|-------|----------|
| `401 Unauthorized` | Token expired or invalid | Regenerate token in Developer Console |
| `403 Forbidden` | Insufficient scopes | Add required scopes: `api:read-data` |
| `ConnectionError` | Wrong hostname | Verify `FOUNDRY_HOSTNAME` has no `https://` prefix |
| `ModuleNotFoundError: foundry` | SDK not installed | `pip install foundry-platform-sdk` (full name) |
| `SSL certificate verify failed` | Corporate proxy/VPN | Set `REQUESTS_CA_BUNDLE` env var |
## Examples
### SDK Comparison
| SDK | Package | Use Case |
|-----|---------|----------|
| Platform SDK | `foundry-platform-sdk` | Direct REST: datasets, branches, files, builds |
| Python OSDK | `palantir-sdk` | Ontology objects, actions, queries, links |
| TypeScript OSDK | `@osdk/client` | Frontend/Node.js Ontology access |
## Resources
- [Foundry API Getting Started](https://www.palantir.com/docs/foundry/api/general/overview/getting-started)
- [Authentication Guide](https://www.palantir.com/docs/foundry/api/general/overview/authentication)
- [Python SDK GitHub](https://github.com/palantir/foundry-platform-python)
- [OSDK Overview](https://www.palantir.com/docs/foundry/ontology-sdk/overview)
## Next Steps
Proceed to `palantir-hello-world` for your first Ontology query, or `palantir-local-dev-loop` for development workflow.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.