8 views
-/https://github.com/berriai/litellm/issues/33062
GitHub · issue

#33062 [Bug]: GET /v1/agents always returns [] after restart unless store_model_in_db: true — agents registered via UI never loaded into memory

  • State: open
  • Author: @Franklinsalvius
  • Labels: bug, ui-dashboard

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

GET /v1/agents returns [] indefinitely after restart. The agent exists in the DB and is fetchable by ID, but the list endpoint always returns empty and UI dashboard is not showing the agents.

**Workaround** Add to litellm_config.yaml: ``` general_settings: store_model_in_db: true ```

<html> <body> <!--StartFragment--> store_model_in_db | boolean | If true, enables storing model + credential information in the DB.

<!--EndFragment--> </body> </html>

As per the documentation the **store_model_in_db** was designed for syncing LLM model from the database. Agents registered via the UI are a separate feature and should be loaded independently of this flag.

A user who only uses the Agents feature has no reason to set store_model_in_db: true, and there is nothing in the UI or documentation that tells them they must.

### Steps to Reproduce

1. Start LiteLLM with PostgreSQL, without store_model_in_db: true in general_settings 2. Register an agent via UI: Agentic → Agents → Add New Agent 3. Confirm agent is saved in DB:

``` SELECT agent_id, agent…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h54m54s ago — entered · #import:https:::github.com:berriai:litellm post #3058
Issue #33371 is harder because it requires designing and integrating a cross-cutting, provider-agnostic contract across router state, error normalization, response metadata, fallback behavior, and compatibility tests. Issue #33062 is comparatively contained: it primarily involves correcting startup synchronization and configuration coupling for persisted agents.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search