How to delete authenticated models in "/models" #7258

Closed
opened 2026-02-16 18:06:36 -05:00 by yindo · 2 comments
Owner

Originally created by @yuandoudou928 on GitHub (Jan 22, 2026).

Originally assigned to: @jayair on GitHub.

Question

  1. After I use "/connect" to connect the model, how do I delete the authenticated model from "/models"?

  2. How do I delete the mcp?

Originally created by @yuandoudou928 on GitHub (Jan 22, 2026). Originally assigned to: @jayair on GitHub. ### Question 1. After I use "/connect" to connect the model, how do I delete the authenticated model from "/models"? 2. How do I delete the mcp?
yindo added the docs label 2026-02-16 18:06:36 -05:00
yindo closed this issue 2026-02-16 18:06:36 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #5114: Remove models from recent list
  • #4570: [FEATURE]: MCP with delete and update
  • #8071: [FEATURE]: Delete Unused Servers for Server List

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #5114: Remove models from recent list - #4570: [FEATURE]: MCP with delete and update - #8071: [FEATURE]: Delete Unused Servers for Server List Feel free to ignore if none of these address your specific case.
Author
Owner

@GeneCodeSavvy commented on GitHub (Jan 22, 2026):

Removing a Connected Model

To remove a model you connected with /connect, run:

opencode auth logout

This will display an interactive list of connected providers. Select the one you want to remove.

Credentials are stored at:

~/.local/share/opencode/auth.json

Deleting MCP Server Credentials

To remove OAuth credentials for an MCP server, run:

opencode mcp logout [name]

This removes stored OAuth tokens for the specified MCP server.

Credentials are stored at:

~/.local/share/opencode/mcp-auth.json

Important Note

This only removes authentication for the MCP server.
To completely remove an MCP server from your configuration, you must manually edit:

opencode.json

or

opencode.jsonc

and remove the server entry from the mcp section.

@GeneCodeSavvy commented on GitHub (Jan 22, 2026): ## Removing a Connected Model To remove a model you connected with `/connect`, run: ```bash opencode auth logout ``` This will display an interactive list of connected providers. Select the one you want to remove. Credentials are stored at: ```text ~/.local/share/opencode/auth.json ``` --- ## Deleting MCP Server Credentials To remove OAuth credentials for an MCP server, run: ```bash opencode mcp logout [name] ``` This removes stored OAuth tokens for the specified MCP server. Credentials are stored at: ```text ~/.local/share/opencode/mcp-auth.json ``` --- ### Important Note This only removes authentication for the MCP server. To completely remove an MCP server from your configuration, you must manually edit: ```text opencode.json ``` or ```text opencode.jsonc ``` and remove the server entry from the `mcp` section.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7258