
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@hung319/opencode-iflow-cli
Advanced tools
OpenCode plugin for iFlow providing access to Qwen, DeepSeek, Kimi, GLM, and iFlow ROME models with auto-config and headless OAuth support
OpenCode plugin for iFlow.cn providing access to Qwen, DeepSeek, Kimi, GLM, and iFlow ROME models with auto-configuration and headless OAuth support.
npm install -g @hung319/opencode-iflow-cli
Or add to your opencode.json with specific version:
{
"plugin": ["@hung319/opencode-iflow-cli@2.0.0"]
}
Then select "iflow" from the provider list when logging in.
That's it! Models are automatically configured. No manual provider configuration needed.
opencode auth login
# Select: iFlow → Enter
# Choose: OAuth 2.0 or API Key
Browser will open automatically. Complete authentication and you're done!
opencode auth login
# Select: iflow (lowercase) → Enter
# Choose: OAuth 2.0
The plugin automatically detects headless environments and adapts accordingly.
Optional configuration file at ~/.config/opencode/iflow.json:
{
"default_auth_method": "oauth",
"account_selection_strategy": "round-robin",
"auth_server_port_start": 8087,
"auth_server_port_range": 10,
"max_request_iterations": 50,
"request_timeout_ms": 300000,
"enable_log_api_request": false
}
| Option | Description | Default |
|---|---|---|
default_auth_method | Auth method (oauth, apikey) | oauth |
account_selection_strategy | Rotation strategy (sticky, round-robin) | round-robin |
auth_server_port_start | OAuth callback server starting port | 8087 |
auth_server_port_range | Number of ports to try | 10 |
max_request_iterations | Max iterations to prevent hangs | 50 |
request_timeout_ms | Request timeout in milliseconds | 300000 |
enable_log_api_request | Enable request/response logging | false |
All config options can be overridden via environment variables:
export IFLOW_DEFAULT_AUTH_METHOD=oauth
export IFLOW_ACCOUNT_SELECTION_STRATEGY=round-robin
export IFLOW_AUTH_SERVER_PORT_START=8087
export IFLOW_MAX_REQUEST_ITERATIONS=50
export IFLOW_REQUEST_TIMEOUT_MS=300000
Models are automatically configured when you install the plugin:
| Model | Context | Output | Features |
|---|---|---|---|
iflow-rome-30ba3b | 256K | 64K | iFlow ROME 30B |
qwen3-coder-plus | 1M | 64K | Qwen3 Coder Plus |
qwen3-max | 256K | 32K | Qwen3 Max |
qwen3-vl-plus | 256K | 32K | Vision support |
qwen3-235b-a22b-thinking-2507 | 256K | 64K | Thinking mode |
kimi-k2 | 128K | 64K | Kimi K2 |
kimi-k2-0905 | 256K | 64K | Kimi K2 0905 |
glm-4.6 | 200K | 128K | Thinking + Vision |
deepseek-v3 | 128K | 32K | DeepSeek V3 |
deepseek-v3.2 | 128K | 64K | DeepSeek V3.2 |
deepseek-r1 | 128K | 32K | Reasoning model |
qwen3-32b | 128K | 32K | Qwen3 32B |
Linux/macOS:
~/.config/opencode/iflow-accounts.json~/.config/opencode/iflow.jsonWindows:
%APPDATA%\opencode\iflow-accounts.json%APPDATA%\opencode\iflow.jsonVariants with thinking budgets:
{
"model": "glm-4.6",
"variant": "medium"
}
Available variants:
low: 1024 thinking tokensmedium: 8192 thinking tokensmax: 32768 thinking tokens{
"model": "deepseek-r1",
"variant": "medium"
}
Same variant options as GLM-4.6.
The plugin automatically detects headless environments via:
SSH_CONNECTION, SSH_CLIENT, SSH_TTYOPENCODE_HEADLESSCI, CONTAINERDISPLAY on LinuxIn headless mode:
MIT
This plugin is provided strictly for learning and educational purposes. It is an independent implementation and is not affiliated with, endorsed by, or supported by iFlow.cn. Use of this plugin is at your own risk.
Feel free to open a PR to optimize this plugin further.
FAQs
OpenCode plugin for iFlow providing access to Qwen, DeepSeek, Kimi, GLM, and iFlow ROME models with auto-config and headless OAuth support
The npm package @hung319/opencode-iflow-cli receives a total of 30 weekly downloads. As such, @hung319/opencode-iflow-cli popularity was classified as not popular.
We found that @hung319/opencode-iflow-cli 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.