
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
opencode-deepseek-auth
Advanced tools
Authenticate the OpenCode CLI with your DeepSeek account credentials. This plugin enables you to use your existing DeepSeek account directly within OpenCode, bypassing the need for separate API keys.
Add the plugin to your OpenCode configuration file
(~/.config/opencode/opencode.json or similar):
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-deepseek-auth@latest"]
}
Login: Run the authentication command in your terminal:
opencode auth login
Select Provider: Choose DeepSeek from the list.
Authenticate: Select Login with DeepSeek Account.
If you have an existing DeepSeek access token, you can set it directly:
opencode auth set --provider deepseek --api-key "your-deepseek-access-token"
You can also put DeepSeek credentials directly in your OpenCode config file:
File: ~/.config/opencode/opencode.json
{
"provider": {
"deepseek": {
"apiKey": "email:password" // Replace with your actual email and password
}
}
}
Below are example model entries you can add under provider.deepseek.models in your
OpenCode config.
File: ~/.config/opencode/opencode.json
{
"provider": {
"deepseek": {
"models": {
"deepseek-chat": {
"displayName": "DeepSeek Chat",
"maxTokens": 8192
},
"deepseek-reasoner": {
"displayName": "DeepSeek Reasoner",
"maxTokens": 8192
}
}
}
}
}
The plugin now supports two authentication modes:
Email/Password Mode:
Direct Token Mode:
The plugin intelligently determines the authentication method:
apiKey contains exactly one colon (:) and the first part contains @ (email) or appears to be a phone number, it treats it as email:passwordprovider: "deepseek" or type: "deepseek-email-password", it always treats the key as email:password formatemail:password or phone:password format. Special characters in passwords may require URL encodingThe plugin handles token refresh automatically, but if you encounter authentication errors, you can re-authenticate with:
opencode auth login
Or clear the stored credentials:
opencode auth clear --provider deepseek
To develop on this plugin locally:
Clone:
git clone https://github.com/yourusername/opencode-deepseek-auth.git
cd opencode-deepseek-auth
npm install
npm run build
Link:
Update your OpenCode config to point to your local directory using a
file:// URL:
{
"plugin": ["file:///absolute/path/to/opencode-deepseek-auth"]
}
MIT
FAQs
Authenticate the Opencode CLI with your DeepSeek account credentials
The npm package opencode-deepseek-auth receives a total of 0 weekly downloads. As such, opencode-deepseek-auth popularity was classified as not popular.
We found that opencode-deepseek-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.