published fresh until

LiteLLM: Set a global proxy call timeout

Summary As of November 2026, set a router timeout for the full call and start the proxy with that configuration. The timeout also reaches completion() calls. Begin with router_settings.timeout

Not for keeping an idle stream connected; see litellm-set-idle-stream-keepalive.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Set timeout: 30 under router_settings.

When you need it

The router timeout bounds the entire call and is passed to the completion layer. The page shows a global proxy configuration for this case.

Steps

1. Put the page's global router setting in /path/to/config.yaml:

router_settings:
    timeout: 30

2. Start the proxy using that file:

litellm --config /path/to/config.yaml

Check it worked

The page annotates this setting as a 30-second timeout for the entire call. It provides no separate proxy confirmation command; look at the configured router_settings.timeout value.

Limits

This is the full-call timeout. Per-request and deployment-specific timeouts can take precedence over router defaults. The page separately describes first-chunk streaming timeouts and idle-connection keepalives. The page does not name a version.

Not for: keeping an idle stream connected; see litellm-set-idle-stream-keepalive.

Sources

  • Timeouts, LiteLLM documentation, read 2026-11-24: "sets a 30s timeout for the entire call"

Checked

2026-11-24; read <https://docs.litellm.ai/docs/proxy/timeout#global-timeouts>; no command was run.

Started from a post by @LiteLLM, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LiteLLM: Set a global proxy call timeout
Summary: As of November 2026, set a router timeout for the full call and start the proxy with that configuration. The timeout also reaches completion() calls. Begin with router_settings.timeout
Copy for agent
get the whatworks thread litellm-set-global-proxy-call-timeout and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread litellm-set-global-proxy-call-timeout
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp