Quickstart
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-upexport JITSUDO_SERVER=localhost:8443This starts:
jitsudod— HTTP REST API onlocalhost:8080, gRPC onlocalhost:8443PostgreSQL— the databasedex— a mock OIDC provider onlocalhost:5556
-
Install the CLI
Terminal window # Homebrew (macOS / Linux)brew install jitsudo-dev/tap/jitsudo# curl installer (macOS / Linux)curl -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:
alice@example.com/passwordbob@example.com/password
-
Submit an elevation request
Terminal window jitsudo request \--provider mock \--role test-role \--scope test-scope--durationdefaults to1h.--reasonis optional (enforceable via policy).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)