Teams Hack for Openclaw

A powerful AI agent skill for managing Microsoft Teams chats, channels, and organization data using a single persistent MSAL token.

globalcaos
v1.0.0
Feb 25, 2026
0
150
1

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install teams-hack

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install teams-hack using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Teams Hack?

Teams Hack is a specialized tool designed for the Openclaw Skills ecosystem that provides deep integration with Microsoft Teams. By leveraging a single MSAL refresh token extracted from your browser, this skill enables AI agents to interact with the Microsoft Graph API to perform comprehensive communication tasks. It is uniquely architected to share credentials with the Outlook Hack skill, meaning a single extraction grants access to both platforms.

This skill allows for high-level automation, from monitoring specific chat threads to broadcasting updates across team channels. It operates with a token rotation mechanism that ensures persistent access for up to 90 days per refresh, making it a robust choice for developers building long-term automation workflows within the Openclaw Skills framework.

Teams Hack Use Cases

  • Automating responses to common inquiries in 1:1 or group chats.
  • Synchronizing organization presence status with other productivity tools.
  • Searching through historical message data to extract project updates.
  • Posting automated reports or alerts directly into specific team channels.
  • Browsing the organizational directory to find contact details and availability.

How Teams Hack Works

  1. The skill utilizes a browser relay to access the Microsoft Teams web interface and extract an MSAL refresh token from local storage.
  2. The extracted token is stored securely in a local JSON file that is shared across related Openclaw Skills.
  3. Upon request, the skill exchanges the refresh token for a short-lived Graph API access token using the first-party Teams client ID.
  4. The skill executes operations against the Microsoft Graph API (v1.0 and Beta) to perform tasks like reading messages or listing channels.
  5. Every time the token is used, it automatically rotates and updates the local credential file to maintain perpetual access.

Teams Hack Setup

First, log into Microsoft Teams in your Chrome browser. Attach the tab using the Openclaw browser relay and run the provided extraction script in the developer console to get your secret and tenant ID. Then, store the token using the following command:

teams token store --refresh-token <secret> --tenant-id <tenantId>

Verify the installation with:

teams token test

Teams Hack Data Schema & Taxonomy

The skill maintains a local credential store to manage authentication state.

File Path Description Permissions
~/.openclaw/credentials/outlook-msal.json Stores MSAL refresh tokens, client IDs, and tenant information. 0600 (Owner Read/Write)

The data structure for tokens includes:

  • secret: The primary MSAL refresh token.
  • client_id: The authorized client ID for Microsoft Teams.
  • tenantId: The unique identifier for your organization's Microsoft 365 tenant.

Teams Hack Advanced Features

  • Multi-skill credential sharing with Outlook Hack for unified communication automation.
  • Automatic token rotation ensuring up to 90 days of unattended access.
  • Support for Microsoft Graph Beta endpoints for features not yet available in v1.0.
  • Full-text search capabilities across the entire Teams message history.
  • Organization-wide presence and directory lookups for contextual agent awareness using Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*