Teams CompanionRead a Microsoft Teams conversation beside your code. Find a chat in the sidebar, open it in an editor tab, and keep your place while new messages arrive. Each tab stays tied to the account that opened it.
Teams Companion is an independent desktop extension powered by Teams CLI. Microsoft Graph supports work or school accounts. The experimental desktop connection also supports personal accounts and reads the history available in the local Teams cache. Get started
Requires VS Code 1.96 or newer. Choose Download verified CLI for the preview. The installed preview uses its verified download by default. To supply your own compatible CLI, select its executable in Settings. The built-in download supports macOS Intel/Apple Silicon, Windows x64 (including x64 emulation on ARM64), and Linux x64. On other hosts, supply a compatible CLI yourself. The extension does not run in vscode.dev or other browser-only extension hosts. Choose a connectionGuided Account Setup runs On-demand chats open the official Teams web app in a browser dedicated to this profile, read the requested conversation, and close the browser. Use Load chats or refresh for new messages. Choose Live chats to keep the browser open while connected. Both modes accept personal or work or school accounts on macOS, Linux and WSL. Sign in once in the visible Teams window. Connecting may reopen your last conversation and mark it read. Live work or school access in a licensed tenant is still awaiting verification in this preview. Existing desktop and regular browser profiles need a separate sign-in when switching to the managed preview. Use Guided Account Setup to create the new profile. Teams Companion uses a private pipe for its browser. If you also use the CLI from another terminal, an on-demand profile can serve authenticated chat requests on its loopback port. Start it with Native Windows supports Microsoft Graph in this preview. Personal and browser-based work or school connections require the Linux extension host in WSL. Microsoft Graph uses a work/school account. Graph sign-in offers the CLI’s browser flow and device-code flow. Choose Request channel history only if you need the additional administrator-consented scope. The CLI runs sign-in in a dedicated local terminal. Complete sign-in yourself, then refresh the conversation list. The extension does not handle passwords or store access tokens. Run Teams: Sign In to Graph Profile if sign-in expires. The extension prefers the local UI extension host. In a Windows window this uses a Windows CLI and Windows profiles. To use a Linux CLI and WSL profiles, install the extension in the WSL distribution and set Make the sidebar yoursIn the Chats … menu, choose Change Sidebar Layout to switch instantly between three layouts. The same choice is available in Settings as
Your choice persists across windows. Switching layouts keeps the selected profile, open conversation tabs and drafts intact. Use Search loaded chats, Unread, or Groups to narrow the current list. Load more conversations expands that list; search does not query all Teams history. Arrow keys move between rows; Enter opens a conversation. Refreshing keeps your scroll position. Avatars use raster photos supplied by the CLI, with initials when a photo is unavailable. The optional desktop photo support reads only avatars already loaded in the selected Teams page; it never downloads remote images or opens another account. Older CLI versions and Graph profiles show initials. Unread indicators appear only when the CLI provides unread state or comparable read/message timestamps. Missing status is not treated as unread. In a browser profile, Teams may mark a conversation read when it opens. The Chats view refreshes at the configured interval while visible. The native Connection section starts collapsed, with a plug button beside the profile for quick access. Start a conversationClick the New Message compose icon in the Chats title bar, or run Teams: New Message. Search by name or full email address, then select the exact person. The picker shows the account/profile and each result’s address or Teams identity. Selecting a person opens or creates a one-to-one conversation in an editor tab; no message is sent until you press Send. Existing conversation tabs are reused. New conversations require a writable profile and replies enabled. Personal Teams uses Teams’ own live people search and contacts; discoverability settings can limit results. Work/school Graph search requires This feature needs a CLI build advertising Read and reply
Drafts stay in memory across refreshes and closing/reopening a tab. They are lost when the extension host exits. Message bodies are not written to draft files or logs. A small journal containing operation IDs, timestamps, and optional client message IDs preserves uncertain-send protection across restarts and multiple VS Code windows. Journal filenames hash the profile/config/chat scope. No send is retried automatically. The CLI section in the Teams sidebar shows the active version and who manages it; hover for its executable path. Teams: Manage CLI lets you select an executable, use the recommended verified download, or turn automatic managed updates on or off. Turning automatic CLI updates off keeps the version already in use. The CLI section shows the actual executable, including an automatic upgrade when the CLI path setting still names its original download. Previously verified local copies are checked against their saved checksum and validated before reuse. Copies downloaded by the extension, including older downloads already selected in settings, automatically upgrade to the version tested with the installed extension. This is a pinned version, not an arbitrary latest release, and newer installations are never automatically downgraded. Downloads are checked against SHA-256 hashes embedded in the extension and checked for the expected version and chat protocol on supported hosts before selection. A failed update keeps the current CLI. Switching waits for sends, account setup, and other current work to finish; managed upgrades preserve open conversations, drafts, and send-status guards. You manage updates for executables you select outside extension storage. Choose Use recommended CLI to switch explicitly. Settings and troubleshooting
Run Teams: Show Connection Diagnostics for an output channel containing allowlisted host/backend/error metadata. It excludes message bodies, raw CLI output, account identities, tokens, profile names, and chat IDs. For account or cache issues, open Teams itself and refresh there. The extension shows history under the account selected by the CLI; it cannot independently verify a desktop account's identity. Avoid switching Teams accounts during an active send. No telemetry is collected. Normal reads and sends go through the chosen CLI backend. Downloads and extension update checks contact GitHub using a generic User-Agent, without Teams account data. Marketplace installations use VS Code's extension update settings. For manual VSIX installations, Teams: Check for GitHub Release looks for a newer download on the installed extension’s release channel. Enable Open Teams opens the appropriate Teams website in your browser. No conversation body or identifier is placed in that URL. DevelopmentNode.js 22 or newer:
The UI suite uses Playwright Chromium; install it with The VSIX includes only bundled runtime code, theme stylesheets, the extension and activity-bar icons, this README, changelog, licenses, and manifest. Tests, synthetic data, local research, design documents, and screenshots are excluded. Packaging is local; it does not publish to the Marketplace. See CONTRIBUTING.md for test and release instructions, SECURITY.md for private vulnerability reports, and GitHub issues for bugs and feature requests. The project is MIT licensed. Browser lifetimeWith Teams CLI 0.2.3 or newer, which supports Enable Teams Companion: Keep Browser Running to preserve newly started browser sessions after exit. You can always use Disconnect browser to close one. With an older CLI, the CLI section explains that an update is needed for automatic cleanup. The extension uses a small CLI supervisor with a private stdin pipe. Closing the
pipe triggers the CLI's verified browser cleanup; no process-name matching or broad
process-tree kills are used. A supervisor forcibly killed along with the browser's
other processes cannot perform cleanup; |

