Get started with Pi and Berget AI

Use the Berget AI CLI to set up Pi, connect it to Berget AI, and run your first AI-assisted coding session on Swedish infrastructure.

In this tutorial, you'll install Pi and use the Berget AI CLI to connect it to Berget AI. By the end, you have a working AI coding assistant running on Swedish infrastructure.

Before you start

To complete this tutorial, you'll need:

Set up Pi

Install Pi

Install the Pi coding agent:

curl -fsSL https://pi.dev/install.sh | sh

Verify the installation by running:

pi --version

Run the setup wizard

Run the interactive setup to authenticate and configure the Berget AI provider for Pi:

npx berget code init

Start Pi

Launch Pi:

pi

Select a model with /model, or cycle through available models with Ctrl+P.

What you built

You now have Pi running as an AI coding assistant in your terminal, backed by Berget AI. Every prompt you send—your code, your questions, the responses—stays within the EU and is processed on Berget AI's European infrastructure.

For more information on how to use Pi, see the Pi docs.

Next steps

  • Models—browse available models
  • Quickstart—call Berget AI directly from your own code

On this page