---
title: Set up PressJet for your AI coding agent
description: The playbook a coding agent follows to install PressJet, add its guidance, connect its MCP server and render a first PDF.
---

# Set up PressJet for your AI coding agent

You are an AI coding agent, and the user asked you to set up PressJet. Follow the four steps in
order and do the work yourself. Hand a step back to the user only when it needs them: a slash
command only they can type, an account, or their approval. Run step 1 once per machine and steps
2 to 4 once per project. PressJet is in beta (0.1.0-beta.7); its binaries run on Linux x86-64 and
ARM64, and on Windows inside WSL 2. macOS binaries start with the next release; until then, on
macOS use the Docker image wherever a step runs `pressjet`.

## 1. Install the pressjet command

1. Run `pressjet --version`. If it prints a version, go to step 2.
2. On Linux, or in WSL 2 on Windows, run `curl -fsSL https://pressjet.dev/install.sh | sh`. It downloads the release for
   this CPU, checks its SHA-256, installs `pressjet` in `~/.local/bin` without sudo, and adds the
   MCP server and the Agent Skill to Claude Code, Codex and Cursor when they are installed. Read
   what it printed. If it connected your agent, skip sections 2 and 3.
3. If the installer cannot run, install from the release, as <https://pressjet.dev/docs/beta/> describes. Pick
   the route that fits the project:
   - Any Linux machine: the release binary (`gh release download v0.1.0-beta.7 -R tonysantana1492/pressjet`, then check its `.sha256`).
   - A Node.js project: the npm packages from the release, which put `pressjet` in `node_modules/.bin`.
   - A Python project: the platform wheel from the release, which installs the `pressjet` command.
   - macOS, Windows or no install rights: `docker run --rm -p 127.0.0.1:8080:8080 -e PRESSJET_API_KEY ghcr.io/tonysantana1492/pressjet:0.1.0-beta.7`, with a key of at least 32 characters in `PRESSJET_API_KEY`.
4. Run `pressjet guide` and read it. It is short, and it is the format and the rules you will use.

## 2. Add PressJet guidance

Install one of these, not both.

- **Claude Code:** ask the user to type `/plugin install pressjet --marketplace tonysantana1492/pressjet`.
  The plugin adds the PressJet skill and the MCP server, so skip step 3.
- **Every other agent:** copy the Agent Skill folder
  <https://github.com/tonysantana1492/pressjet/tree/main/skills/pressjet-pdf> into the folder your
  agent reads skills from: `.agents/skills/pressjet-pdf/` for Codex, `.claude/skills/pressjet-pdf/`
  for Claude Code without the plugin. Agents without skills can read the same guide with `pressjet guide`.

## 3. Connect the PressJet MCP server

Skip this step if the Claude Code plugin is installed. Otherwise add a local stdio server named
`pressjet` that runs `pressjet mcp --workspace <absolute path of this project>`:

- Claude Code: `claude mcp add pressjet -- pressjet mcp --workspace "$PWD"`
- Codex: `codex mcp add pressjet -- pressjet mcp --workspace "$PWD"`
- Cursor and other clients with an `mcpServers` setting:

  ```json
  {
    "mcpServers": {
      "pressjet": {
        "command": "pressjet",
        "args": ["mcp", "--workspace", "/absolute/path/to/this/project"]
      }
    }
  }
  ```

The tools read and write files only inside that workspace. Details:
<https://pressjet.dev/docs/agents/>.

## 4. Render a first PDF

1. Write a small document JSON from this project's real data, or start from the example in
   `pressjet guide`. Save it as `out/sample.json`.
2. Run `pressjet render out/sample.json -o out/sample.pdf` and read the report it prints.
3. Run `pressjet check out/sample.json`. Fix each finding at the JSON Pointer it names and run the
   check again until it reports none. Every code is explained at
   <https://pressjet.dev/docs/layout-report/>.

To call PressJet from the application itself, pick the SDK for its language (Node.js, Python, Go
or PHP) at <https://pressjet.dev/docs/beta/#choose-an-sdk>. Ask the user before you add a
dependency to the application.

## Report

End with this summary, filled in:

```text
■ PressJet agent setup is ready
CLI        pressjet <version>, or the Docker image
Guidance   Claude Code plugin | Agent Skill at <path> | pressjet guide
MCP        connected | provided by the plugin | skipped: <reason>
First PDF  <path> · <pages> pages
Check      <number> findings
Next       reload your agent so it loads the new skill and MCP server
```

## Learn more

- Every PressJet document, indexed for agents: <https://pressjet.dev/llms.txt>
- AI agents and MCP: <https://pressjet.dev/docs/agents/>
- Document format: <https://pressjet.dev/docs/document-format/>
- Layout diagnostics: <https://pressjet.dev/docs/layout-report/>
