Droid

Configure Droid (Factory) to route through ToyGate as its provider.

Integrations

Droid reads its provider config from ~/.droid/config.yaml. Add a provider block with the gateway's base URL and a gw_ key.

Config

yaml
provider: your-providerbase_url: https://api.toygate.store/v1api_key_env: GATEWAY_KEYmodel: gpt-5.5

api_key_env references an environment variable; Droid looks it up at start. Export the variable in whichever shell launches Droid.

Verify

export GATEWAY_KEY=gw_...
droid run "Say hi"

Expected output: a regular Droid agent step that prints the assistant turn.

Troubleshooting

  • Droid silently exits — GATEWAY_KEY usually isn't exported in the environment Droid sees. Verify with env | grep GATEWAY_KEY.
  • upstream_bad_request — Droid sometimes sends parameters that the upstream doesn't accept, such as tool definitions for a model without tool support. Check the model's capabilities on the catalog page.

Gateway URL: https://api.toygate.store