BlueGit

ict rusty-teams

Files

rusty-teams
NameLast commitLast update
.cargo fix(macos): sharing a window opens the system window picker (#97) 4 days ago
.github fix(macos): sharing a window opens the system window picker (#97) 4 days ago
crates feat(kvt): Business Central-kaarten in berichten en koppelen met sleutels.kvt.nl 3 days ago
docs feat(kvt): Business Central-kaarten in berichten en koppelen met sleutels.kvt.nl 3 days ago
packaging feat(thema): KVT-accenten, app-icoon, woordmerk en DINPro-detectie 3 days ago
scripts feat(thema): KVT-accenten, app-icoon, woordmerk en DINPro-detectie 3 days ago
site fix(macos): sharing a window opens the system window picker (#97) 4 days ago
spikes
tools
vendor fix(macos): sharing a window opens the system window picker (#97) 4 days ago
.gitattributes
.gitignore fix(macos): sharing a window opens the system window picker (#97) 4 days ago
AGENTS.md feat(thema): KVT-accenten, app-icoon, woordmerk en DINPro-detectie 3 days ago
blue-ci-cd.yml ci(release): KVT-release, AUR-pakket kvt-rusty-teams-bin en updater via git.kvt.nl 3 days ago
Cargo.lock feat(kvt): Business Central-kaarten in berichten en koppelen met sleutels.kvt.nl 3 days ago
Cargo.toml chore(release): 0.6.1 7 days ago
CLAUDE.md docs: AGENTS.md for contributors' agents, two reviews before a PR 6 days ago
cliff.toml ci(release): release notes from git-cliff with highlights, conventional PR titles 7 days ago
CONTRIBUTING.md chore(ci): PR gate no longer limits a PR to 400 changed lines 5 days ago
GUARDRAILS.md docs: AGENTS.md for contributors' agents, two reviews before a PR 6 days ago
KVT-FORK.md feat(kvt): Business Central-kaarten in berichten en koppelen met sleutels.kvt.nl 3 days ago
LICENSE
README.md fix(macos): sharing a window opens the system window picker (#97) 4 days ago
ROADMAP.md feat(calendar): drag over empty slots to create a meeting (#91) 5 days ago
README.md

Rusty Teams logo

Rusty Teams

A fast, native Microsoft Teams chat client. Written in Rust, rendered on the GPU. No admin approval needed.

Rust GPUI Platform License: MIT Discord

Features · Quick start · How it works · Roadmap · Discord

Rusty Teams

> [!NOTE] > Unofficial. Not affiliated with or endorsed by Microsoft. It uses the same web APIs as the Teams web app, which can change at any time.

Why

Rusty Teams
🏢 Works in company tenantsNo app registration, no admin consent: it runs on the Teams web app your account is already allowed to use
⚡ Starts instantlyRenders from a local SQLite cache before the network answers
🔒 No tokens storedSigns in through a real Teams web page; tokens are never written to disk
📡 Live, no pollingRealtime socket pushes every change
🔎 Offline searchFull-text index over your chats, Ctrl+K switcher

Features

Chats and channels

  • Teams pin order, chat folders, hidden teams, Muted and Meeting chats sections
  • Channel posts like Teams: one card per post, newest activity on top, last 3 replies, inline reply, new post with a subject, full conversation view
  • Channel tabs and the Shared tab (library and files from posts), per-channel notifications
  • Chat menu: pin, move to folder, mark as unread, mute, hide, leave
  • Read receipts, typing indicator with faces, presence, unread jump
  • Own status, status message and work location from the avatar menu; profile cards with org chart
  • Activity bell: new messages, @mentions and reactions, kept for 14 days

Messages

  • Send, edit, delete, react, quote-reply, @mentions
  • Forward, copy link, save (Saved panel), pin to the chat banner, mark unread from here
  • Inline images, file cards, link previews
  • Adaptive Cards like Teams: tables, code blocks, badges, charts, date and time pickers, live refresh, task dialogs
  • GIFs and stickers in messages
  • Select and copy message text

Composer

  • Rich text: format bar on selection, Ctrl+B / Ctrl+I / Ctrl+U, lists, quotes, code
  • Markdown converts as you type or paste
  • Picker with Emoji, GIF and Sticker tabs
  • :thumbsup: and :) convert as you type, German aliases included
  • Schedule send: right-click send or Ctrl+Shift+Enter
  • Drafts and unsent messages survive a restart
  • Keyboard like Teams: Ctrl+1..4 panels and tabs, Alt+Up / Alt+Down next chat, call keys on Ctrl+Shift+A/D/H/O/E/M/J, Ctrl+. lists them all

Calls

  • Test call to the Teams Echo bot from the avatar menu: native WebRTC audio, mute (Ctrl+Shift+M), device switching, mini window while you read other chats
  • Phone button in 1:1 and group chat headers: callee tiles show Calling and Ringing, Cancel while ringing, notices like "Bea declined" or "No answer"
  • Video and screen sharing: H264 tiles, shared screen on a stage (double click for full window, Esc back), camera and screen share buttons with a "You are sharing" banner. Linux needs glib at run time. On Wayland, sharing opens the desktop ScreenCast portal dialog, including on KDE, GNOME and Hyprland
  • Incoming calls: topmost ring toast with Decline and Accept, ring tone, missed calls in Activity
  • Join a running meeting from its chat (audio): roster tiles, speaking ring, lobby state, Leave or End meeting for the organizer
  • After every call a pseudonymized test report (JSON and Markdown, newest 30) is saved to the app data folder call-reports; toast "Test report saved" with Open folder, Settings > Devices switch
  • Organizer controls: lobby banner with Admit and Deny, tile menu (pin, spotlight, mute, remove), Mute all, live captions overlay, camera background blur

Agents (MCP)

  • Local MCP server at http://127.0.0.1:40615/mcp, off by default: Settings > MCP
  • Agents read allowed chats, channels, meetings and transcripts (images, reactions, files and cards included, newest messages across chats), and propose replies with @mentions and images, or an emoji reaction
  • A reply shows as a card above the composer: Send, Edit or Discard. A reaction shows as a note under the message: Accept or Discard. Agents never send
  • One-click install for Claude Code, Codex CLI, Copilot CLI, VS Code and Cursor, Windows and WSL. WSL needs networkingMode=mirrored
  • Delegate a message to a coding-agent CLI (Claude Code, Copilot, any CLI) from the hover toolbar: progress chip, Agents page, toast when it finishes, Open session

Calendar (fork)

  • Outlook calendar as today, plus optional Google Calendar accounts (Settings > Calendar)
  • Merge by iCal UID / Teams join URL; New meeting writes to the home calendar and optional extra targets
  • Google OAuth Desktop (PKCE): set TEAMS_GOOGLE_CLIENT_ID and optionally TEAMS_GOOGLE_CLIENT_SECRET before Connect

App

  • Dark theme, opens instantly from the cache
  • Windows downloads a newer release quietly and restarts when idle. Linux under ~/.local asks first. Other installs open the release page. Flatpak does not check.
  • Single instance: a second start brings the window to the front
  • Guest orgs: the avatar menu lists every org of your account (home and guest tenants) with unread counts; picking one restarts on it with its own cache. Messages from the other orgs show as toasts

Status

WindowsLinuxmacOS
SupportMain targetSupportedSupported
Sign-inEmbedded WebView2Your browser, headlessYour browser, headless
Download.exe.tar.gz, self-installs to the app menu.app (Apple Silicon, macOS 14+)
Tray iconYesStatusNotifierItemMenu bar
UpdatesQuiet download, idle restartAsks when installed under ~/.local; otherwise opens the release pageOpens the release page

<details> <summary><b>Sign-in on Linux and macOS</b></summary>

  • Uses your default browser when it is Chromium- or Firefox-based, else the first one installed.
  • Linux: Chrome, Chromium, Firefox, Zen, LibreWolf, Floorp
  • macOS: also Edge, Brave, Helium, Vivaldi
  • Settings > General > Teams session browser picks another one.
  • The browser runs headless with its own profile. It only shows a window when Teams asks you to sign in.
  • --endpoint connects to a Chrome you started yourself.
  • A built-in login without a browser is planned.

</details>

<details> <summary><b>Linux details</b></summary>

  • Install: on first start the app offers to install itself to ~/.local/share/rusty-teams/teams and adds it to the application menu. Settings > General can install, replace or remove it.
  • Updates: a release build installed under ~/.local asks, then downloads and restarts. Other copies open the release page. Flatpak does not check.
  • Tray: KDE Plasma natively, GNOME with the AppIndicator extension. "Show icon in the tray" plus "On close, keep the application running" keeps the app in the tray.
  • Window id: rusty-teams, for window manager rules.
  • Emoji: a bundled Noto Color Emoji font, so they look the same on every distro.

</details>

<details> <summary><b>macOS details</b></summary>

  • Screen share uses the ScreenCaptureKit system dialog.

</details>

The remaining gaps are planned, see ROADMAP.md.

Quick start

Download the build for your platform from Releases and sign in with your work account.

Nightly builds of main are pre-releases tagged v<next version>-nightly.<date>. A nightly updates to newer nightlies and then to the next release; a release build never offers nightlies.

Or build it yourself:

cargo run --release -p app

Google Calendar (optional)

1. Create an OAuth Desktop client in Google Cloud Console with redirect http://127.0.0.1:<port>/ (loopback; the app picks a free port). 2. Export before starting the app:

export TEAMS_GOOGLE_CLIENT_ID="….apps.googleusercontent.com"
# only if the client has a secret:
export TEAMS_GOOGLE_CLIENT_SECRET="…"

3. Settings > Calendar > Connect Google, then choose home calendar and optional dual-write targets.

Without these env vars the calendar stays Outlook-only.

TaskCommand
Linux build needs clang 21+ (libwebrtc's hermetic libc++) + mold (set in .cargo/config.toml); sccache shares compiled deps across worktreessudo apt install clang mold sccache, clang from apt.llvm.org if the distro one is older than 21
Against Chrome on a debug portcargo run -p app -- --endpoint http://127.0.0.1:9222
Windows exe from WSL/Linuxscripts/build-windows.sh crates/app teams
macOS .app (Apple Silicon, macOS 14+), Xcode CLT onlyscripts/build-macos.sh crates/app teams
Linux AppImage, deb, rpm and tar.gz in dist/release (needs nfpm for deb/rpm)packaging/linux/package.sh
Testscargo test
Headless screenshot (Xvfb, xdotool, xclip, mesa-vulkan-drivers)cargo build -p app && scripts/headless-shot.sh shot.png -- "mousemove 450 740" "click 1" "type hello"
Layout sweep before every UI deploy: 8 screens at 640x480 and 1920x1080, PNGs in target/layout-sweep (look at each)cargo build -p app && scripts/layout-sweep.sh
Layout guard: no overlapping or clipped elements, no negative offsets outside widgets::corner_badgecargo test -p app layout_guard

How it works

Rusty Teams never sees your password and never stores a token. It signs you in through a real Teams web page and lets that page make the API calls.

+--------------------------- Rusty Teams (Rust) ---------------------------+
|  app      GPUI window: sidebar, chat view, composer, Ctrl+K              |
|  core     sync engine, actions, mapping to view models                   |
|  store    SQLite cache + FTS5 search index                               |
|  graph    Microsoft Graph: chats, channels, messages, people, sending    |
|  chatsvc  Teams chat service: realtime, pins, folders, read receipts     |
|  session  runs requests inside the Teams page, one Transport trait       |
|  mcp      local MCP server for agents, permissions, config install       |
+------------------------------------|-------------------------------------+
                                     | DevTools protocol (CDP)
+------------------------------------v-------------------------------------+
|  Hidden browser page on teams.cloud.microsoft, own profile               |
|  webview: WebView2 (Windows)   or   browser: Chrome with a debug port    |
+------------------------------------|-------------------------------------+
                                     | HTTPS with the page's own MSAL tokens
               Graph  |  chat service (ic3)  |  presence  |  Trouter socket

<details> <summary><b>Sign-in and tokens</b></summary>

1. A hidden browser page loads Teams web with its own profile. On Windows this is WebView2, so single sign-on with the Windows account usually just works. 2. If Teams asks for a login, the login window shows itself. After that the page stays parked in the background. 3. Every API call is sent to that page over CDP. A small script (crates/session/assets/fetch.js) picks the matching token from the page's MSAL cache, refreshes it when needed, and runs the fetch. 4. The page only hands out access tokens. Rust sends the requests itself and keeps each token in memory until shortly before it expires, never stored or logged. Websocket exchanges and calls that need the app's cookies still run inside the page. TEAMS_PAGE_FETCH=1 sends everything through the page again. 5. The Trouter socket is opened from Rust too, so the page can park even during a call.

</details>

<details> <summary><b>Data flow</b></summary>

StepWhat happens
StartThe UI renders from the SQLite cache right away. A chat still syncing shows a progress line in its header. Skeleton bubbles only when the cache has no messages yet
Synccore fetches chats and channels from Graph with delta queries, pins and folders from the chat service
Livechatsvc keeps the Trouter WebSocket open. An event only says "something changed", the content is then fetched fresh
WriteSends, edits and reactions go out through Graph or the chat service, then the cache updates
SearchLocal FTS5 index over cached messages, no server round trip

</details>

<details> <summary><b>Crates</b></summary>

CrateJob
appGPUI desktop app, binary teams
coreSync engine, actions, people ranking, markdown and card rendering
storeSQLite cache, migrations, search, image file cache
graphTyped Microsoft Graph client with batching and paging
chatsvcTeams chat service: Trouter realtime, pins, folders, receipts
callingNative calls: Teams signaling, SDP translation, libwebrtc audio and video
sessionTransport trait, CDP session, in-page fetch
webviewHidden WebView2 host (Windows only)
browserChrome lifecycle and watchdog for the CDP transport
cliteams-probe, a read-only end-to-end check

</details>

Roadmap

Open and finished features by priority: ROADMAP.md

License

MIT