#33062 [Bug]: GET /v1/agents always returns [] after restart unless store_model_in_db: true — agents registered via UI never loaded into memory
### 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…