Setup guide · Streamlit

Sustainability report analysis with AI on Streamlit

Deploy Open Sustainability Analyst on Streamlit Cloud for sustainability report analysis with AI — ESRS and TCFD frameworks, your OpenAI key, step-by-step screenshots. Render guide · Customize ESRS frameworks

About 10–15 minutes A free GitHub account An OpenAI account with billing

Part 1

Install Open Sustainability Analyst on Streamlit Cloud

Streamlit runs the app from the report-analyst repo on GitHub.

  1. Sign in to Streamlit Cloud

    Open share.streamlit.io and sign in with GitHubcreate an account first if needed.

  2. Deploy Open Sustainability Analyst

    Click Deploy an app. Set Repository to climateandtech/report-analyst, Branch to main, Main file path to report_analyst/streamlit_app.py, then Deploy.

    Streamlit deploy form showing repository, branch and main file path fields
    Use climateandtech/report-analyst unless you deploy a fork with custom frameworks.
    Streamlit main file path field with report_analyst/streamlit_app.py
    Main file path must be report_analyst/streamlit_app.py.
  3. Wait for the build

    First deploys can take 10–20 minutes or longer. Click Manage app to check deployment status and logs while you wait.

    Streamlit loading screen with the message “Your app is in the oven”
    “Your app is in the oven” — the build is still running.
    Streamlit Manage app button in the app toolbar
    Manage app shows deployment status and logs.
  4. Expect an “API key” message

    Without a key yet, you may see “No valid API keys found.” Normal — add your key in Part 2.

    Open Sustainability Analyst error asking for OPENAI_API_KEY
    The app is running — it just needs your OpenAI key.

Part 2

Get your OpenAI API key and add it to Streamlit

Add your own OpenAI key in Streamlit Secrets.

A. Create your OpenAI API key

  1. Create an OpenAI API key

    At platform.openai.com/api-keys, click Create API key, name it, and copy the sk-… key immediately — OpenAI shows it only once.

    Never share your key or commit it to a public repository.

    OpenAI platform sidebar with API keys selected
    API keys page in the left-hand menu.
    OpenAI Create API key button
    Click “Create API key”.
    OpenAI Save your key dialog with a masked secret key
    Copy and store the key safely.
  2. Enable billing

    Add a payment method or credits under Settings → Billing — API usage is billed separately from ChatGPT.

B. Add the key in Streamlit Secrets

  1. Add your key in Secrets

    Click Manage appSettings → Secrets. Add OPENAI_API_KEY = "sk-…" and save — Streamlit redeploys automatically.

    Streamlit Manage app button
    Manage app → Settings → Secrets.
  2. Reload and analyse reports

    After redeploy, reload your app. Upload a sustainability report and pick a framework — ESRS-oriented and TCFD sets are built in.

Custom frameworks

Deploy your fork for custom ESRS analysis

For custom ESRS analysis, fork the repo, edit the YAML, and deploy your fork.

  1. Fork the repo, then deploy your copy

    Custom ESRS frameworks live in your fork. Click Fork on GitHub — see the customize frameworks guide for editing YAML.

    GitHub repository page with the Fork button in the top-right toolbar
    Fork before you edit question sets or deploy.
  2. Deploy your fork on Streamlit

    In the deploy form, set Repository to your fork (e.g. your-username/report-analyst), branch main, path report_analyst/streamlit_app.py.

    GitHub Code dropdown with Copy URL to clipboard on a forked repository
    Copy your fork URL from GitHub Code → HTTPS.
    Streamlit deploy form with wrong repository showing “This file does not exist”
    Wrong repo or path triggers “This file does not exist”.
Full customize frameworks guide

Troubleshooting

Streamlit says “This file does not exist”

Check the repository name and set the main file path to report_analyst/streamlit_app.py. For custom frameworks, use your fork URL.

I still see “No valid API keys found”

Open Manage app → Settings → Secrets and confirm OPENAI_API_KEY is set. Wait for the redeploy to finish, then reload.

The deploy seems stuck

First builds often take 10–20 minutes or longer. Click Manage app to check deployment status and logs — if it is still running, wait before trying again.

My custom framework is missing

You must deploy your fork after committing the YAML file. See the deploy your fork section.

Need a hand?

Need guided help or a managed setup? Use Setup or contact us.