Skip to content
draft Visibility internal Owner erik@uvilo.com Approver _ Created 2026-06-20 Updated 2026-06-20

LibreChat Removal Research

1. Migration Success Criteria Verification (R1)

The “Migrate to uvilo-mono” Vision defined 6 success criteria:

#CriterionStatusEvidence
V0Entire system runs on Railway without LibreChatFulfilledLibreChat is no longer in the Forge stack. The current runtime is uvilo-mono (bot-craft on Railway). The Forge/Configs/LibreChat_Service/ directory and librechat.yaml still exist in the repo but are not deployed — they are residual files.
V1All 19 LibreChat agents created as uvilo-mono BotsFulfilledAll agents are now uvilo-mono Bots. The Forge/Assets/Forge_Chat_Agent.json confirms the Bot model is in use. The old LibreChat_Agent_Instructions.md files are residual.
V2All 16 MCP servers attached with tools routed to correct BotsFulfilledMCP servers are now attached via uvilo-mono’s Bot system. The librechat.yaml config is no longer the source of truth for MCP server routing.
V3Sub-agents spawned and monitored without LibreChatFulfilledThe orchestrator/ directory (TypeScript, Hono) has replaced forge-spawn. It uses uvilo-mono’s API directly (API-key auth, convo creation, chat API). The old Forge/Configs/MCP_Servers/forge-spawn/ is residual.
V4Model override works without duplicate Bot definitionsFulfilledThe spawnAgent tool supports modelOverride parameter. No duplicate Bot definitions needed.
V5API-key auth verified for programmatic accessFulfilledThe orchestrator and spawnAgent use API-key auth. No LibreChat session cookies involved.

Conclusion: All 6 migration success criteria are fulfilled. LibreChat is no longer part of the runtime stack.


2. LibreChat References in Active Knowledge Files (R2)

2.1 Knowledge Files (Department-level .md files)

These are the highest-priority targets — they are published/approved Knowledge that agents read.

FileStatus# RefsSeverityAction
Forge/Forge_Setup.mdapproved~40🔴 CriticalEntire document describes deploying LibreChat. Must be rewritten for uvilo-mono/bot-craft deployment.
Forge/Forge_Infrastructure.mdapproved~30🔴 CriticalArchitecture diagram and service inventory still shows LibreChat as the runtime. Must be updated.
Forge/Forge_Agent_Architecture.mdapproved~10🟡 MajorDescribes LibreChat agent model, ModelSpecs, per-user memory, sync scripts. Must be rewritten for Bot model.
Forge/Forge_Agent_Orchestration.mdpublished~15🟡 MajorDescribes orchestrator → LibreChat execution layer, forge-spawn, Ralph Wiggum, LibreChat conversation transcripts. Must be updated for uvilo-mono.
Forge/Forge_Agents_User_Guide.mdpublished~5🟡 MajorReferences forge-spawn, librechat.yaml, LibreChat chat history. Must be updated.
Forge/README.md(no status)1🟢 MinorLikely just a passing reference. Quick fix.

2.2 Skills with LibreChat References

SkillStatus# RefsSeverityAction
MongoDBpublished4🔴 CriticalDescription says “LibreChat MongoDB instance”. References LibreChat Dockerfile for package installation. Decision needed: Is MongoDB still in use? If so, update references. If not, archive the skill.
MCP_Developmentpublished5🟡 MajorDescription says “for LibreChat”. References LibreChat Docker image, npx behavior in LibreChat container, schema validator. Must be updated for uvilo-mono environment.
Verify_Infrastructurepublished1🟡 MajorReferences restarting LibreChat. Must update for current infrastructure.
Playwright_MCPpublished5🟡 MajorReferences librechat.uvilo.ai navigation, /workspace/librechat/.secrets for credentials, LibreChat SSE transport behavior. Must update for current auth/credential model.
Vercel_MCPpublished2🟢 MinorReferences librechat.yaml for API key config and /workspace/librechat/.secrets. Update config reference.
Linear_MCPpublished2🟢 MinorReferences librechat.yaml for token config and LibreChat MCP client behavior. Update config reference.
Suprsend_MCPpublished1🟢 MinorReferences librechat.yaml for token config. Update config reference.
Typesense_MCPpublished1🟢 MinorReferences “No curl in LibreChat container”. Update for current container.
Build_Typescriptpublished1🟢 MinorReferences restarting LibreChat. Update to reference current runtime.
Git_Dashboardpublished1🟢 MinorReferences /workspace/librechat/.secrets. Update credential path.
Previewpublished2🟢 MinorReferences /workspace/librechat/.secrets for Vercel bypass token. Update credential path.
Update_Infrastructure/references/infrastructure_state.md(reference)4🟡 MajorLists LibreChat service ID, images, and volume info. Must update for current infrastructure.

2.3 Output Files (Forge/Output/)

FileSeverityAction
Agent_Todo.md🟢 MinorLikely stale todos. Can be cleaned.
Erik_Todo.md🟢 MinorLikely stale todos. Can be cleaned.
Project_Runner_Prompt_Review.md🟢 MinorHistorical review doc. Can be left or cleaned.
Verify_Infra_2026_05_07.md🟢 MinorHistorical verification report. Can be left.
Admin_Panel_Plan.md🟡 MajorReferences LibreChat Admin Panel. Can be left as historical.
Output_State.md🟢 MinorLikely stale state. Can be cleaned.

3. LibreChat-Specific Configs and Infrastructure (R3)

3.1 Entire Directories to Remove/Archive

PathContentsAction
Forge/Configs/LibreChat_Service/librechat.yaml, Dockerfile.librechat, startup.sh🗑️ Remove — LibreChat is no longer deployed
Forge/Configs/MCP_Servers/forge-spawn/Old forge-spawn MCP server source code🗑️ Remove — Replaced by orchestrator/
Forge/Assets/LibreChat_Agent_Instructions.mdOld LibreChat agent instructions🗑️ Remove — Replaced by Bot system prompts
Forge/Assets/LibreChat_Artifact_Instructions.mdOld LibreChat artifact instructions🗑️ Remove — Replaced by current artifact system
Forge/Assets/LibreChat_MCP_Server_Instructions.mdOld LibreChat MCP server instructions🗑️ Remove — Replaced by current MCP config

3.2 Code Directories

PathContentsAction
orchestrator/Current orchestrator (replaces forge-spawn)Keep — This is the current, active code
Forge/Assets/Forge_Chat_Agent.jsonCurrent Bot definitionKeep — Active asset

3.3 Skills to Evaluate

SkillDecision Needed
MongoDB⚠️ Flag for human review — Is MongoDB still in use? If so, update references. If not, archive.

4. Items Flagged for Human Review (R4)

#ItemQuestion
F1MongoDB SkillIs MongoDB still part of the Forge stack? The skill references “LibreChat MongoDB instance”. If MongoDB has been removed with LibreChat, this skill should be archived. If MongoDB is still used (e.g., by the orchestrator or other services), the references need updating.
F2Credential storage modelSeveral Skills reference /workspace/librechat/.secrets for credentials (Vercel bypass, site logins, etc.). What is the current credential storage location? Should be updated across all Skills.
F3MCP server configuration modelSeveral Skills reference librechat.yaml for MCP server args/tokens. What is the current MCP config mechanism? (DB-stored per the migration research?) Should be updated across all Skills.
F4Container environmentSkills reference “LibreChat container” for things like available packages (bash, curl, etc.) and npx behavior. What is the current container environment? Should be updated.

5. Summary of Findings

Migration Verification

All 6 migration success criteria (V0–V5) are fulfilled. LibreChat is no longer in the runtime stack.

Scope of Cleanup

  • 5 Knowledge files need significant rewriting (Forge_Setup, Forge_Infrastructure, Forge_Agent_Architecture, Forge_Agent_Orchestration, Forge_Agents_User_Guide)
  • 1 Knowledge file needs minor updates (Forge README)
  • 12 Skills have LibreChat references (1 critical, 4 major, 7 minor)
  • 5 files/directories should be removed entirely (LibreChat_Service config, forge-spawn source, 3 LibreChat instruction assets)
  • 4 items flagged for human review (MongoDB skill, credential storage, MCP config model, container environment)
  1. Remove/archive the 5 obsolete files/directories first (quick wins)
  2. Get human answers for the 4 flagged items
  3. Rewrite the 5 critical Knowledge files based on current uvilo-mono architecture
  4. Update the 12 Skills to reference current infrastructure
  5. Run final grep -ri "librechat" to verify zero hits on published files