The Studio embed requires CrewAI Platform v0.33.7 or later. Earlier versions are missing fixes the embed depends on.
Overview
Studio can render inside a cross-origin iframe — no sidebar, no app header, just the Canvas, Chat, and toolbar. A small embed script (one<script> tag) builds and mounts that iframe into a container you provide, so the host application never hand-constructs or manages an iframe URL directly.
Access is authorized per organization by an embed token your deployment generates automatically — not a public ID, and not something you request from CrewAI.
Prerequisites
- CrewAI Platform v0.33.7 or later is running and accessible at its configured hostname
- Admin access to the web UI
- The ability to update your Helm values and upgrade the deployment
- The exact origin(s) of the host page that will frame Studio (e.g.
https://app.yourcompany.com)
Step 1: Allow Your Embed Origin
In yourvalues.yaml, set EMBEDDED_STUDIO_ALLOWED_ORIGINS under envVars to the exact domain(s) the embed page will run on:
Step 2: Copy the Embed Token
- In the web UI, navigate to Settings → Default Settings (
/crewai_plus/settings/defaults) - Locate the embed token for your organization — it is generated automatically, with nothing to request from CrewAI
- Copy the ready-made snippet shown on that page, or copy the token alone and use the snippets in Step 3
Step 3: Add the Embed Snippet
Drop an empty container<div> and one <script> tag on the host page. The script reads its own attributes, builds the Studio URL, and mounts the iframe inside your container — sized to whatever CSS you give that container.
Place the container and the script anywhere on the page — order doesn’t matter, the script waits for the page to finish loading if it runs before the container exists.
Project list
A specific project's editor
The container ID doesn’t grant access to anything, and the token alone doesn’t either — it only identifies which organization to render; a user still has to sign in — see Sign-In.
Pass Environment Variables
Usedata-env to hand context from the host application — a team, tenant, or region identifier — to the automations built inside the frame:
- The variables are saved as project environment variables each time a project’s editor opens in the frame — a newly created project, or an existing one opened with
data-project. The project list alone saves nothing. - Each open overwrites the previous value, so the host page is the source of truth.
- Values must be strings:
{"TEAM_ID":"42"}works,{"TEAM_ID":42}is ignored. - Up to 5 variables are applied; any beyond that are ignored.
- Names must start with a letter or underscore and contain only letters, digits, or underscores. If any name is invalid, none of the variables are saved.
- Wrap the attribute value in single quotes so the JSON’s double quotes stay intact.
Scope the Project List
Usedata-scope when one organization serves several groups — teams, tenants, workspaces — and a user who belongs to more than one should only see the projects of the group they opened Studio from:
- A project created inside the frame — from the + card or the chat — is tagged with the frame’s scope. A copy made in the frame gets the frame’s scope too.
- The frame’s project list shows only projects tagged with that scope. Projects without a scope, including every project created before you added
data-scope, don’t appear in a scoped frame. - Without
data-scope— or with an empty value — the frame lists every project the user can access, as before. - The scope only affects the embedded frame. In the CrewAI web UI, users see all their projects as usual.
data-projectopens the given project whatever its scope.- A project’s scope is set when it is created and can’t be changed from the UI.
Step 4: Allow the CrewAI Domain in Your CSP (Optional)
If the host page sets its own Content-Security-Policy, it needs your CrewAI deployment’s domain in two directives:script-src— to load the embed scriptframe-src(orchild-src) — for the iframe the script mounts
Step 5: Verify
Open the host page in a standard (non-private) browser window. Studio should mount inside your container, or ask you to sign in first — see Sign-In. What to expect once it renders:- Studio renders without the CrewAI app’s sidebar or header — just Canvas, Chat, and the toolbar.
- Clicking anything outside Studio’s own scope (a link to a different part of the CrewAI app) opens in a new browser tab instead of navigating inside the iframe, with a short heads-up first — so a user never loses the embedded context by accident.
Sign-In
Users sign in to the embed with the same identity provider your deployment already uses — nothing extra to configure. The embed supports every provider CrewAI Platform does:- Okta
- Microsoft Entra ID
- Keycloak
- Auth0
- WorkOS
- Local accounts (proof-of-concept installs)
- Inside the frame, when the provider allows its login page to load in an iframe.
- In a pop-up, when it doesn’t — the default for most providers, and always the case with WorkOS. After a few seconds the frame shows a Continue to sign in button that opens the provider’s usual login page in a pop-up. Once the user signs in, the pop-up closes itself and Studio loads in the frame. If the browser keeps the pop-up open, it shows “You’re signed in” and can be closed.
Known Limitations
Troubleshooting
The iframe doesn’t render at all
CheckEMBEDDED_STUDIO_ALLOWED_ORIGINS first — see Step 1. The value must match the host page’s origin exactly, including scheme and any non-standard port. A valid token does not bypass this.
The frame shows a server error on load
The deployment runs a version older than v0.33.7. Upgrade to v0.33.7 or later.Sign-in loops back to the login screen
The browser is blocking third-party cookies. Retry in a standard (non-private) browser window — see Known Limitations.Continue to sign in does nothing
The browser blocked the pop-up; the button then reads “Pop-up blocked — allow pop-ups and try again”. Allow pop-ups for the host page and click it again.The embed script never loads
If the host page sets a Content-Security-Policy, confirm bothscript-src and frame-src allow your CrewAI deployment’s domain — see Step 4.
Projects are missing from a scoped frame
A frame withdata-scope lists only projects created with that same scope. Projects created elsewhere — in the CrewAI web UI, in a frame without data-scope, or before the attribute was added — have no scope and only show up in an unscoped frame or the web UI. Confirm the value matches exactly, including case.
Environment variables from data-env don’t appear on the project
Failures here are silent by design, so the frame keeps working. Check that:
- The deployment runs v0.33.7 or later.
- The browser isn’t serving a cached copy of an older
studio-embed.js— the iframe’s URL should includeembedded_env=. - A project’s editor was opened in the frame; the project list doesn’t save variables.
- Every value is a JSON string, and every name is valid — see Pass Environment Variables.
Related Guides
- Enable Studio V2 - Enable and configure Crew Studio V2 on an existing deployment
- Environment Variables - Configure
envVarsin your Helm values
