Quickstart
import { Steps, Aside } from ‘@astrojs/starlight/components’;
This quickstart runs jitsudo locally using Docker Compose. You’ll have a fully functional control plane, a mock OIDC provider, and a PostgreSQL database — no cloud credentials required.
Prerequisites: Docker or Podman installed.
-
Clone the repository
Terminal window git clone https://github.com/jitsudo-dev/jitsudocd jitsudo -
Start the local environment
Terminal window make docker-upThis starts:
jitsudod— the control plane onlocalhost:8080PostgreSQL— the databasedex— a mock OIDC provider onlocalhost:5556
-
Install the CLI
Terminal window # macOS / Linuxcurl -fsSL https://jitsudo.dev/install.sh | sh# Or build from sourcemake build && export PATH="$PWD/bin:$PATH" -
Log in
Terminal window jitsudo login --provider http://localhost:5556/dexThis opens a device flow. Visit the URL shown in the terminal and log in with a test user:
[email protected]/password[email protected]/password
-
Submit an elevation request
Terminal window jitsudo request \--provider mock \--role test-role \--scope test-scope \--duration 1h \--reason "Testing jitsudo locally"Note the request ID (e.g.,
req_01J8KZ...). -
Approve the request (in another terminal)
Terminal window jitsudo login --provider http://localhost:5556/dex # log in as a different userjitsudo approve req_01J8KZ... -
Use the elevated credentials
Terminal window jitsudo exec req_01J8KZ... -- env | grep MOCK
Next steps
Section titled “Next steps”- Install jitsudo in a real environment
- Configure a real cloud provider (AWS, Azure, GCP, Kubernetes)
- Set up SSO with your identity provider (Okta, Entra ID, Google Workspace)