Right now, the Agents SDK in Copilot Studio cannot be used without user sign-in. The SDK is built to work only with authenticated users because it needs Azure AD identity to run actions securely. That is why the documentation only shows the “Connect to Copilot Studio with Agents SDK User Sign-in” method.
If you want users to access the agent without signing in, Microsoft currently provides only two workable options:
1. Use the default Web Chat Embed (Anonymous Access)
This method supports fully anonymous usage and works out-of-the-box, but the UI cannot be deeply customized. You can only do basic styling through the container or CSS. If you only need a simple embed, this is the only supported front-end option.
2. Build a Custom UI + Call the Agent Through Your Backend (Service/Server Identity)
If you need a fully custom chat UI but still want the user to remain anonymous, you must call the agent from your backend instead of the browser.
Here is how it works:
- Your web app has no login.
- Your backend authenticates with Azure AD using a confidential client (client secret or managed identity).
- The backend calls the Copilot agent using the Agents SDK or REST endpoint.
- Your UI simply displays the messages returned by your backend.
This pattern is commonly used when teams need custom chat interfaces while keeping users anonymous. It keeps your credentials secure and still allows you to fully control the front-end experience.
At the moment, Microsoft does not offer a direct “anonymous SDK” authentication method.
Thank you.
Karan Shewale.
If this response resolves your issue, please Accept the answer and, if helpful, click the “Upvote” button. Your feedback helps us improve and assist others more effectively.