Self-Hosting
Plantic is open source and uses a client-server architecture. The server can be self-hosted. You can either run it locally or on a cloud server that you control. To run it on a cloud server, go to Advanced Self-Hosting section. To run it locally, keep reading below.
Local Mode Quickstart
The quickstart requires git, docker, and docker-compose. It's designed for local use with a single user.
- Run the server in local mode:
git clone https://github.com/plantic-ai/plantic.git
cd plantic/app
./start_local.sh
- In a new terminal session, install the Plantic CLI if you haven't already:
curl -sL https://plantic.ai/install.sh | bash
- Run:
plantic sign-in
-
When prompted 'Use Plantic Cloud or another host?', select 'Local mode host'. Confirm the default host, which is
http://localhost:8099. -
If you don't have an OpenRouter account, first sign up here. Then generate an API key here. Set the
OPENROUTER_API_KEYenvironment variable:
export OPENROUTER_API_KEY=<your-openrouter-api-key>
- If you don't have an OpenAI account, first sign up here. Then generate an API key here. Set the
OPENAI_API_KEYenvironment variable:
export OPENAI_API_KEY=<your-openai-api-key>
- In a project directory, start the Plantic REPL:
plantic
You're ready to start building!