← All agents
Connect Codex to Shorty
OpenAI's CLI coding agent — connects over MCP with one command.
1. Add the Shorty MCP server
codex mcp add shorty --url https://aishorty.com/api/mcp2. Complete the OAuth consent flow
codex mcp login shorty
Verify it worked
Call the MCP tool `get_usage_quota` (or `curl -s https://aishorty.com/v1/usage -H "Authorization: Bearer $SHORTY_API_KEY"` for the REST API)
Success: A JSON body naming a plan (Free, Premium, or Pro) and usage limits — not a 401 or a tool-not-found error.