# CLI for the API

**URL:** <https://community.palantir.com/t/cli-for-the-api/4745>\
**Category:** Ask the Community\
**Tags:** osdk\
**Created:** [August 11, 2025, 6:31pm UTC](https://community.palantir.com/t/cli-for-the-api/4745 "2025-08-11T18:31:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjor](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/anjor/32/391_2.png) [@anjor](https://community.palantir.com/u/anjor)\
**Post date:** [August 11, 2025, 6:31pm UTC](https://community.palantir.com/t/cli-for-the-api/4745/1 "2025-08-11T18:31:22Z")

</div>

I have been using Claude Code quite a lot recently, and one of the things I discovered was that a CLI (as opposed to an MCP) works a lot better with claude code. So I decided to (vibe)code a pltr cli: https://github.com/anjor/pltr-cli

It’s just a wrapper on top of the official SDK: https://github.com/palantir/foundry-platform-python that provides a CLI form factor.

---

<div class="post-metadata">

**Author:** ![ewitkon](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@ewitkon](https://community.palantir.com/u/ewitkon)\
**Post date:** [August 11, 2025, 6:36pm UTC](https://community.palantir.com/t/cli-for-the-api/4745/2 "2025-08-11T18:36:56Z")

</div>

This is interesting, you are saying that if you let Claude code call the API directly, you get better results then when linking it to the Palantir MCP and let it use the same APIs through tools?

Can you share an example? what was the prompt you used?

---

<div class="post-metadata">

**Author:** ![anjor](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/anjor/32/391_2.png) [@anjor](https://community.palantir.com/u/anjor)\
**Post date:** [August 11, 2025, 6:38pm UTC](https://community.palantir.com/t/cli-for-the-api/4745/3 "2025-08-11T18:38:33Z")

</div>

I experienced this not in a palantir context, but in one of my other projects.

It was also the official advice from Anthropic in this video: https://youtu.be/gv0WHhKelSE?si=HYcKmXuItpJ55AgD

---

<div class="post-metadata">

**Author:** ![smith](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@smith](https://community.palantir.com/u/smith)\
**Post date:** [August 14, 2025, 1:22pm UTC](https://community.palantir.com/t/cli-for-the-api/4745/4 "2025-08-14T13:22:06Z")

</div>

Hey! I maintain the Python SDK and just wanted to say how cool this project is. Really happy to see the SDK being used for stuff like this!

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [August 9, 2026, 1:22pm UTC](https://community.palantir.com/t/cli-for-the-api/4745/5 "2026-08-09T13:22:39Z")

</div>

Closed on August 9, 2026, 1:22pm UTC

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.
