# Build a multi-user Claude Agent SDK app that acts as each of your users

DevFeed: [Build a multi-user Claude Agent SDK app that acts as each of your users](<https://devfeed.tech/articles/build-a-multi-user-claude-agent-sdk-app-that-acts-as-each-of-your-users-16006.md>)

Original publisher: [Read original article](<https://workos.com/blog/build-multi-user-claude-agent-sdk-app>)

Author: WorkOS

Published: 2026-08-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [WorkOS Blog](<https://devfeed.tech/sources/workos-blog.md>)

Topics: [Claude](<https://devfeed.tech/topics/claude.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>), [Multitenancy](<https://devfeed.tech/topics/multitenancy.md>), [Next.js](<https://devfeed.tech/topics/next-js.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [anthropic](<https://devfeed.tech/topics/anthropic.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [build](<https://devfeed.tech/tags/build.md>), [claude](<https://devfeed.tech/tags/claude.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [multi-tenancy](<https://devfeed.tech/tags/multi-tenancy.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [sdk](<https://devfeed.tech/tags/sdk.md>)

## AI overview

This tutorial explains how to build a multi-user Claude Agent SDK application whose tool calls run with the signed-in user's identity. It recommends constructing the tool surface per request, capturing the acting user in a closure, and exposing no tool parameter that lets the model choose another user.

## Source excerpt

Follow the official Agent SDK examples and every user's agent runs on one shared token, which is usually yours. Here is how to bind each tool call to the signed-in user instead, using AuthKit and Pipes relay.