Skip to main content

Agent-first CLI for Microsoft 365 Outlook on the web endpoints

Project description

m365-owa-cli

m365-owa-cli is a personal, agent-first Python CLI for Microsoft 365 Outlook workflows through Outlook on the web / OWA internal service endpoints.

The current command surface is calendar-focused, but the package name leaves room for mail and tasks if the same OWA-authenticated endpoint strategy proves useful there. Microsoft Graph is intentionally out of scope.

Examples

m365-owa-cli capabilities
m365-owa-cli schema event
m365-owa-cli auth set-token --connection work
m365-owa-cli auth bookmarklet --connection work --raw
m365-owa-cli auth list-connections
m365-owa-cli events list --connection work --day 2026-04-24
m365-owa-cli events delete --connection work --id AAMk... --confirm-event-id AAMk...

Commands emit JSON by default. Use --pretty where supported for local human-readable output.

Configuration

Tokens are stored as plaintext files under:

~/.config/m365-owa-cli/connections/<connection>.token

Tests and automation can override the config root with M365_OWA_CONFIG_DIR.

Manual Token Capture

Generate a local-only bookmarklet helper:

m365-owa-cli auth bookmarklet --connection work --raw

Create a browser bookmark with the generated value as the URL, open Outlook on the web, click the bookmarklet, then refresh or open Calendar. If OWA sends an Authorization: Bearer ... header to /owa/service.svc, the helper displays it for copying into auth set-token.

Releases

New versions are published to PyPI from GitHub Actions when a v* tag is pushed. The workflow uses PyPI trusted publishing against the pypi environment in this repository, so no long-lived PyPI API token is stored in GitHub.

Before the first release, configure a pending trusted publisher on PyPI:

  • PyPI project name: m365-owa-cli
  • Owner: okms
  • Repository: m365-owa-cli
  • Workflow: publish.yml
  • Environment: pypi

Release flow:

# bump version in pyproject.toml, commit
git tag vX.Y.Z
git push origin main --tags

The .github/workflows/publish.yml workflow runs tests, builds the source and wheel distributions, checks them with Twine, and publishes them to PyPI. Tag-less runs can also be triggered manually from the Actions tab.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

m365_owa_cli-0.1.1.tar.gz (43.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

m365_owa_cli-0.1.1-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file m365_owa_cli-0.1.1.tar.gz.

File metadata

  • Download URL: m365_owa_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for m365_owa_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0ae99b84d4eba569cfb2982bcbb1ea1a84441adf778a886ffc040a1cb041a7f2
MD5 d78c0d96afb448bba2e40719dae8b939
BLAKE2b-256 bcdc680cf1a126d2731ca53adf180758bacf371c4e83dd164c653558bada8a10

See more details on using hashes here.

Provenance

The following attestation bundles were made for m365_owa_cli-0.1.1.tar.gz:

Publisher: publish.yml on okms/m365-owa-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file m365_owa_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: m365_owa_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for m365_owa_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a103d4a0e16a44450cd376ead3dd76ff0df7e7cb3243d56ceaec60cf412d8eb8
MD5 a08fdab283416214c39d00179f91900e
BLAKE2b-256 137c0fa5629215d9a0ace6efd42935ed32db56dc27cf1d9824856d76775717bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for m365_owa_cli-0.1.1-py3-none-any.whl:

Publisher: publish.yml on okms/m365-owa-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page