Saltar al contenido principal

Use your own AI in JusPrin: an API key for Claude, OpenAI or OpenRouter (Grok too), or Claude Code and Codex

· 8 min de lectura

Say you already pay for AI. You have an Anthropic or OpenAI account for work, or you use Claude Code every day, and you'd rather not buy credits for one more AI. JusPrin lets you bring that AI with you.

There are two ways, and neither uses JusPrin credits:

  • Your own API key from Anthropic, OpenAI or OpenRouter. JusPrin's chat runs on your key, and the provider bills you for what you use. Through OpenRouter that includes xAI's Grok and many other models.
  • An AI app you already use, such as Claude Code, Codex, Claude Desktop, Cursor or VS Code. That app's AI works on the project you have open in JusPrin.

Both are set up in Preferences › BYOAI ("bring your own AI"). This page walks through each, step by step.

The three ways to use AI in JusPrin​

JusPrin accountYour own API keyAn AI app you already use
Where you talk to AIJusPrin's chatJusPrin's chatThe other app, such as Claude Code
Who you payJusPrin, in creditsThe AI provider, for what you useWhatever you already pay for that app
JusPrin credits usedYesNoneNone
Which modelsJusPrin's own, tuned for 3D printingAny the provider offers that can use toolsThe app's own
Set up inPreferences › AccountPreferences › BYOAIPreferences › BYOAI

Any one of them works on its own, and you can switch at any time. You don't need a JusPrin account for either of the two ways on this page. You don't need AI at all to slice and print, either.

Use your own API key​

1. Get a key from the provider​

ProviderWhere to make a keyThe key starts with
Anthropic (Claude)console.anthropic.com, under API keyssk-ant-
OpenAIplatform.openai.com/api-keyssk-
OpenRouteropenrouter.ai/keyssk-or-

An API key is billed separately from a ChatGPT or Claude chat subscription. Your provider account needs billing set up, or credit added, before the key works.

2. Add the key in JusPrin​

  1. Open Preferences. On a Mac, choose Preferences in the JusPrin menu, or press Cmd+,. On Windows and Linux, choose Preferences in the menu beside the File button, or press Ctrl+,.
  2. Open BYOAI.
  3. Under Your own API key, click Add key beside Anthropic, OpenAI or OpenRouter, and paste the key.
  4. Click Check key. JusPrin checks the key with the provider.

The key is kept on your computer only. Replace and Remove change it later.

3. Pick a model and start a chat​

Beside the chat's message box are two choices: which AI model the chat uses, and how long it thinks before answering. Out of the box, an Anthropic key starts with Claude Opus 5.5, and an OpenAI or OpenRouter key starts with GPT-5.4 mini.

A chat keeps the model and thinking level it started with. Both lock once you send the first message. To try another model, start a new chat with the + at the top of the AI panel. To change the model every new chat starts with, choose it under New chats start with in Preferences › BYOAI.

Grok, Gemini and other models through OpenRouter​

JusPrin has no separate xAI or Google key. To use Grok, Gemini, Qwen and others, use an OpenRouter key. OpenRouter is one account that reaches models from many companies.

With an OpenRouter key, the model picker lists every OpenRouter model that can use tools. The list runs to hundreds, so it starts with a search field: type "grok" to find xAI's models.

Why only models that can use tools. JusPrin's AI doesn't just chat. It does the work by calling JusPrin's own tools: reading and changing settings, slicing, checking the slice, placing and repairing objects. A model that can't call tools can't do any of that, so JusPrin leaves it out.

Pictures need a model that can see. To show AI a photo of a failed print, pick a model that reads images. A model that can't says so on the picture's row above the message box, and the picture isn't sent.

The default models are the ones JusPrin's AI has been tested with most. Other models use the same tools, but how well they set up a print or diagnose a failure varies from model to model.

What it costs​

JusPrin charges nothing when you use your own key. The provider charges you by usage, at their own prices.

One message in JusPrin can cost more than one message in a plain chat app. To answer you, the AI may read your settings, slice, look at the result and slice again, and each step is another request to the model. Strong models with long thinking cost the most. A smaller model and a lower thinking level cost less. Your provider's usage page shows exactly what you spent.

Where your chat goes​

With your own key, JusPrin sends the chat straight from your computer to the provider you chose: Anthropic, OpenAI or OpenRouter. The conversation doesn't pass through JusPrin's servers. The provider receives your messages, the files and pictures you attach, and what the AI reads from your project, such as settings and slice results. Their own terms and privacy policy apply.

Use an AI app you already use (Claude Code, Codex and others)​

If you already work in an AI app, it can drive JusPrin directly. You keep talking in that app, and its AI works on the project open in JusPrin: it reads the settings, changes them, slices and checks the slice.

This works over MCP (Model Context Protocol), the standard way AI apps connect to other programs. JusPrin offers these apps: Claude Code, Codex, Claude Desktop, Cursor and VS Code.

Connect it​

  1. In Preferences › BYOAI, look under Connect an AI tool you already use. Each app says whether JusPrin found it on this computer. Look again searches again, for example after you install one.
  2. Click Connect… beside the app.
    • For Claude Code and Codex, JusPrin shows a command to run in a terminal, with Copy. It adds JusPrin to that app's tools.
    • For Claude Desktop, Cursor and VS Code, JusPrin shows the change it will make to the app's settings file, and Connect makes it.
  3. When it says Connected, click Done.

Use it​

Keep JusPrin running with a project open. The other app works on whatever project JusPrin has open, and asks you to open one if none is. Then ask the app's AI in plain words, for example "make this part stronger and slice it" or "why does the first layer look like this?".

What the connected app's AI can do in JusPrin:

  • open and import model files, place objects and lay out plates;
  • repair, split and merge objects;
  • search and read the print settings, and change them, previewing each change before it's applied;
  • slice, and read the slice report and any print issues;
  • render views of the plate, so a model that sees pictures can look at it;
  • set up calibration tests;
  • export files, and open the print dialog.

Like JusPrin's own AI, a connected app never starts a print. It can open the print dialog, and you press Send.

When it doesn't work​

  • Check key fails. Check that you pasted the whole key and picked the right provider; the prefixes in the table above tell them apart. The other usual cause is a provider account with no billing set up or no credit left.
  • A picture isn't sent. The chat's model can't read images. Start a new chat with a model that can.
  • The model you want isn't in the OpenRouter list. It can't use tools, so JusPrin's AI can't work with it.
  • A connected app says JusPrin isn't available. Open JusPrin and open a project, then ask again.
  • Anything else: choose Report a problem… in JusPrin's Help menu, which opens a GitHub issue with your version filled in, or write to jusprin-support@obico.io.

Or use a JusPrin account​

If you'd rather not manage keys, a JusPrin account is the quickest start. JusPrin's own AI specializes in 3D printing, and a new account gets 500 free credits for its first month. The JusPrin 2 announcement lists what a message costs and the plans.

Download JusPrin, free for Windows, Mac and Linux.