Skip to content
All topics▾

Step 12 of 12

Self-hosting

PromptPrinter is open source. You can run the whole app on your own computer, with a free model through Ollama. Your chats then go to no outside service, not even to promptprinter.app.

By Updated

What do I need?

  • Ollama for the model. Any other server with OpenAI's chat API works too, for example LM Studio.
  • Node 24 and Git.
  • Docker, for the database: it runs as a local Supabase stack on your computer.

The code is on GitHub, under the MIT License. The name, the logo and the images of Finn are excluded.

How do I set it up?

  1. Get a model. Ollama then listens on http://localhost:11434.
    ollama pull qwen3
  2. Get the code and start the database. The last command shows ANON_KEY and SERVICE_ROLE_KEY, which you'll need in a moment.
    git clone https://github.com/BajKasum/PromptPrinter.git
    cd PromptPrinter
    npm ci
    npx --yes supabase@2.119.0 start
    npx --yes supabase@2.119.0 status -o env
  3. Copy the template:
    cp .env.example .env.local
    In .env.local, fill in these lines and leave the rest of the template empty:
    SELF_HOSTED=1
    NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
    NEXT_PUBLIC_SUPABASE_ANON_KEY=<ANON_KEY from supabase status>
    SUPABASE_SERVICE_ROLE_KEY=<SERVICE_ROLE_KEY from supabase status>
    NEXT_PUBLIC_APP_URL=http://localhost:3000
    API_KEY_ENCRYPTION_SECRET=<output of: node -e "console.log(require('crypto').randomBytes(32).toString('base64'))">
    LLM_BASE_URL=http://localhost:11434/v1
    LLM_MODEL=qwen3
  4. Start it, then open http://localhost:3000, create an account and chat:
    npm run dev

The account lives in your own database, and there's no confirmation email there. A production build instead of development mode, Docker or a reverse proxy: that's all in the full guide (in German; for Docker, see the section Mit Docker).

What's different from promptprinter.app?

  • SELF_HOSTED=1 switches on single-process mode. Every account chats on your model, without the limit of three free prompts and without needing its own key. An hourly limit per account remains.
  • Anyone who signs up chats on your model. If your installation is on the internet, turn off sign-ups as soon as your own accounts are created.
  • No human check when signing in and no contact form, as long as you don't configure the services for them. To run it on the internet, put TLS in front of it.
  • How good the prompts are depends on the model. A model with a thinking mode (like qwen3) may show its thinking text in the chat; if so, use a model without a thinking mode or turn thinking off on the server.

Does it work without a database?

In the terminal, yes. The promptprinter program runs with --local without an account and without a database, straight against your Ollama. How to get and start it is under CLI.

What hasn't been tested?

The setup has been run through in the browser against a server that imitates Ollama's API, not against a real Ollama. How good Finn's prompts are with a small model on your computer hasn't been measured. If something goes wrong, report it as an issue on GitHub.