AiGatewayDisabled is wrapped as a transient error
Author: lirbankCreated Aug 27, 2026Updated Sep 9, 2026
Found while testing the AI gateway through @convex-dev/agent 0.7.1 + @convex-dev/ai-sdk-provider 0.1.0 on convex 1.45.0. Calling the gateway from a team on the free plan throws:
Uncaught Error: Transient error while running create service token: {"code":"AiGatewayDisabled","message":"The Convex AI gateway is not enabled for your team. Upgrade to a paid plan to enable it, or contact [email protected] if you believe this is an error."}The inner message is great. The issue is just the transient wrapper, since AiGatewayDisabled is permanent until the team upgrades, an agent seeing transient may keep retrying. Speculating here, but classifying it as a permanent error would possibly let agents fall back to a provider key immediately.
More context: https://github.com/get-convex/convex-agents/pull/47#issuecomment-5445221436
Source: get-convex/convex-backend