For App Developers
This guide explains how to make your application accessible to AI Agents through the AAI protocol.
Overview
Integrating your app with AAI is straightforward:
- If your app already supports platform automation (AppleScript, COM, DBus) -- just write an
aai.jsondescriptor. Zero code changes needed. - If your app does not yet support automation -- add automation support using your platform's native mechanism, then write the descriptor.
Integration by Platform
macOS (AppleScript / JXA)
If your app already supports AppleScript or JXA, integration requires zero code changes:
- Write an
aai.jsonconfiguration file describing your app's tools - Place it in
~/.aai/<appId>/aai.json - Done!
If your app does not yet support AppleScript:
- Enable AppleScript in your
Info.plist:xml<key>NSAppleScriptEnabled</key> <true/> - Implement script commands (Swift/ObjC) or leverage JXA
- Write your
aai.jsondescriptor
Windows (COM Automation)
If your app already exposes a COM interface, integration requires zero code changes:
- Confirm your application's ProgID (e.g.,
MyApp.Application) - Write an
aai.jsonconfiguration file - Place it in
%USERPROFILE%\.aai\<appId>\aai.json - Done!
Linux (DBus)
If your app already exposes a DBus interface, integration requires zero code changes:
- Confirm your DBus service name, object path, and interface
- Write an
aai.jsonconfiguration file - Place it in
~/.aai/<appId>/aai.json - Done!
Web App (REST API)
If your app already has a REST API, integration requires zero backend changes:
- Write an
aai.jsondescribing your API endpoints as tools - Host it on your domain (e.g.,
https://api.yourapp.com/.well-known/aai.json) - Submit the URL to the AAI Registry
- Done -- any Agent can now discover and use your service
Web App descriptors use platforms.web with automation: "restapi" and support OAuth 2.0, API Key, or Bearer Token authentication. See Web App Platform for the full reference.
Community-Contributed Descriptors
Even if you are not the app developer, you or the community can create aai.json descriptors for existing applications -- both desktop apps with automation support and Web Apps with public REST APIs. This means popular apps can be made AAI-compatible without any involvement from the original developer.
What's Next?
- aai.json Schema -- Full reference for the descriptor format
- Platform Support -- Details on each platform's automation mechanisms
- Security -- How AAI handles authorization and permissions