1. Registry
  2. Packages
  3. Oh Dear
  4. Installation & Configuration
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher

Oh Dear: Installation & Configuration

ohdear logo
Viewing docs for Oh Dear v1.0.0
published on Tuesday, Sep 1, 2026 by Matthias Hamacher

    Installation

    The Oh Dear provider is available for Node.js/TypeScript and Python.

    npm install @matthiashamacher/ohdear
    
    pip install matthiashamacher_ohdear
    

    The provider is a native (Go) plugin. Pulumi downloads it automatically from the package’s pluginDownloadURL; to install it by hand:

    pulumi plugin install resource ohdear <version> \
      --server github://api.github.com/matthiashamacher/pulumi-ohdear
    

    Authentication

    Every Oh Dear API call uses one token, sent as Authorization: Bearer <token>. Create a token under Account → API tokens in Oh Dear (https://ohdear.app/user/api-tokens).

    Provide it in one of two ways:

    Environment variable

    export OHDEAR_API_TOKEN="your-api-token"
    

    Pulumi configuration

    pulumi config set --secret ohdear:apiToken "your-api-token"
    

    Explicit config wins over the environment variable. If neither is set, the provider fails at startup with a clear error.

    Configuration reference

    KeyEnvironment variableRequiredDescription
    ohdear:apiTokenOHDEAR_API_TOKENyesOh Dear API token. Stored as a secret; sent as a Bearer token on every request.

    Finding IDs

    Most resources need a numeric teamId. List your teams and their IDs with:

    curl https://ohdear.app/api/me \
      -H "Authorization: Bearer $OHDEAR_API_TOKEN" \
      -H 'Accept: application/json'
    
    ohdear logo
    Viewing docs for Oh Dear v1.0.0
    published on Tuesday, Sep 1, 2026 by Matthias Hamacher

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial