Start the backend, discover Control, and create the Project and Application used by a Runtime integration. You can manage Projects and Applications either through the embedded Control Console at http://localhost:8081/console/ (unlocked with OWLAUTH_CONTROL_API_KEY) or via the CLI walkthrough below.
From a source checkout with Rust, Node.js, pnpm, uv, Docker, and Docker Compose:
make install
cp .env.example .env
make devIf you already have a root .env, check it against .env.example instead of overwriting it. The example credentials are public and suitable only for disposable local databases.
Check both listeners from another terminal:
curl -fsS http://127.0.0.1:8080/ready
curl -fsS http://127.0.0.1:8081/ready
curl -fsS http://localhost:8081/.well-known/owlauthBuild the CLI with cargo build --locked --package owlauth-cli if needed, and put target/debug/owlauth on PATH. Load the local key and pin the discovered Control identity. Run the first profile command and review its output before confirming.
set -a
. ./.env
set +a
owlauth profile add local --endpoint http://localhost:8081
owlauth profile add local --endpoint http://localhost:8081 --yes
owlauth --profile local system
owlauth --profile local project create --name ExampleSet PROJECT_ID to the returned id. Use public_id later for Runtime, not for the Control command below.
owlauth --profile local application create "$PROJECT_ID" --name Example \
--allowed-origins http://localhost:3000 \
--redirect-uris http://localhost:3000/auth/callbackSet PROJECT_PUBLIC_ID and APPLICATION_PUBLIC_ID to the two public_id values. Use one of the returned publishable_keys to configure the Runtime SDK. Confirm that the Auth listener can read the Application configuration:
curl -fsS --get --data-urlencode "application_id=$APPLICATION_PUBLIC_ID" \
"http://localhost:8080/v1/projects/$PROJECT_PUBLIC_ID/auth/config"A newly created Application has no assigned upstream provider. Configure a Project provider in Control, register its returned callback_uri with the upstream provider, and assign it to the Application. For passwordless email, configure and activate SMTP, then enable the Project email policy and Application email assignment. Use owlauth --help and command-specific --help for flags, or export the Control contract with make openapi.
Stop make dev with Ctrl-C, then run make dev-down to stop PostgreSQL. make dev-reset deletes local PostgreSQL data.