Use the pltr CLI to query datasets, run SQL, manage builds, ontologies, projects, users, streams, AI agents, and ML models in Palantir Foundry.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install pltr-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install pltr-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/pltr-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: pltr-cli description: Helps you work with Palantir Foundry using the pltr CLI. Use this when you need to query datasets, manage orchestration builds, work with ontologies, run SQL queries, manage folders/spaces/projects, copy datasets, or perform admin operations in Foundry. Triggers: Foundry, pltr, dataset, SQL query, ontology, build, schedule, RID. ---
This skill helps you use the pltr-cli to interact with Palantir Foundry effectively.
pltr-cli is a comprehensive CLI with 100+ commands for:
The Foundry API is RID-based (Resource Identifier). Most commands require RIDs:
ri.foundry.main.dataset.{uuid}ri.compass.main.folder.{uuid} (root: ri.compass.main.folder.0)ri.orchestration.main.build.{uuid}ri.orchestration.main.schedule.{uuid}ri.ontology.main.ontology.{uuid}Users must know RIDs in advance (from Foundry web UI or previous API calls).
Before using any command, ensure authentication is configured:
# Configure interactively
pltr configure configure
# Or use environment variables
export FOUNDRY_TOKEN="your-token"
export FOUNDRY_HOST="foundry.company.com"
# Verify connection
pltr verify
All commands support multiple output formats:
pltr <command> --format table # Default: Rich table
pltr <command> --format json # JSON output
pltr <command> --format csv # CSV format
pltr <command> --output file.csv # Save to file
Use --profile to switch between Foundry instances:
pltr <command> --profile production
pltr <command> --profile development
Load these files based on the user's task:
| Task Type | Reference File | |-----------|----------------| | Setup, authentication, getting started | reference/quick-start.md | | Dataset operations (get, files, branches, transactions) | reference/dataset-commands.md | | SQL queries | reference/sql-commands.md | | Builds, jobs, schedules | reference/orchestration-commands.md | | Ontologies, objects, actions | reference/ontology-commands.md | | Users, groups, roles, orgs | reference/admin-commands.md | | Folders, spaces, projects, resources, permissions | reference/filesystem-commands.md | | Connections, imports | reference/connectivity-commands.md | | Media sets, media items | reference/mediasets-commands.md | | Anthropic Claude models, OpenAI embeddings | reference/language-models-commands.md | | Streaming datasets, real-time data publishing | reference/streams-commands.md | | Functions queries, value types | reference/functions-commands.md | | AIP Agents, sessions, versions | reference/aip-agents-commands.md | | ML model registry, model versions | reference/models-commands.md |
For common multi-step tasks:
| Workflow | File | |----------|------| | Data exploration, SQL analysis, ontology queries | workflows/data-analysis.md | | ETL pipelines, scheduled jobs, data quality | workflows/data-pipeline.md | | Setting up permissions, resource roles, access control | workflows/permission-management.md |
# Verify setup
pltr verify
# Current user info
pltr admin user current
# Execute SQL query
pltr sql execute "SELECT * FROM my_table LIMIT 10"
# Get dataset info
pltr dataset get ri.foundry.main.dataset.abc123
# List files in dataset
pltr dataset files list ri.foundry.main.dataset.abc123
# Download file from dataset
pltr dataset files get ri.foundry.main.dataset.abc123 "/path/file.csv" "./local.csv"
# Copy dataset to another folder
pltr cp ri.foundry.main.dataset.abc123 ri.compass.main.folder.target456
# List folder contents
pltr folder list ri.compass.main.folder.0 # root folder
# Search builds
pltr orchestration builds search
# Interactive shell mode
pltr shell
# Send message to Claude model
pltr language-models anthropic messages ri.language-models.main.model.xxx \
--message "Explain this concept"
# Generate embeddings
pltr language-models openai embeddings ri.language-models.main.model.xxx \
--input "Sample text"
# Create streaming dataset
pltr streams dataset create my-stream \
--folder ri.compass.main.folder.xxx \
--schema '{"fieldSchemaList": [{"name": "value", "type": "STRING"}]}'
# Publish record to stream
pltr streams stream publish ri.foundry.main.dataset.xxx \
--branch master \
--record '{"value": "hello"}'
# Execute a function query
pltr functions query execute myQuery --parameters '{"limit": 10}'
# Get AIP Agent info
pltr aip-agents get ri.foundry.main.agent.abc123
# List agent sessions
pltr aip-agents sessions list ri.foundry.main.agent.abc123
# Get ML model info
pltr models model get ri.foundry.main.model.abc123
# List model versions
pltr models version list ri.foundry.main.model.abc123
pltr verify before starting workpltr sql submit + pltr sql wait for long-running queries--output to save results for further analysispltr shell provides tab completion and historypltr --help # All commands
pltr <command> --help # Command help
pltr <command> <sub> --help # Subcommand help安装 Palantir Foundry CLI 后,可以对 AI 说这些话来触发它
Help me get started with Palantir Foundry CLI
Explains what Palantir Foundry CLI does, walks through the setup, and runs a quick demo based on your current project
Use Palantir Foundry CLI to use the pltr CLI to query datasets, run SQL, manage builds, ontolog...
Invokes Palantir Foundry CLI with the right parameters and returns the result directly in the conversation
What can I do with Palantir Foundry CLI in my data & analytics workflow?
Lists the top use cases for Palantir Foundry CLI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/pltr-cli/ 目录(个人级,所有项目可用),或 .claude/skills/pltr-cli/(项目级)。重启 AI 客户端后,用 /pltr-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Palantir Foundry CLI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Palantir Foundry CLI 可免费安装使用。请查阅仓库了解许可证信息。
Use the pltr CLI to query datasets, run SQL, manage builds, ontologies, projects, users, streams, AI agents, and ML models in Palantir Foundry.
Palantir Foundry CLI 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Palantir Foundry CLI
Identifies repetitive steps in your workflow and sets up Palantir Foundry CLI to handle them automatically