npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opencode-iflow-auth

v0.0.5

Published

Opencode plugin for Iflow authentication

Readme

Opencode iFlow Auth Plugin

A plugin for Opencode that provides authentication and model integration for the iFlow AI platform.

This plugin enables you to use iFlow's powerful models (GLM, DeepSeek, Qwen, Kimi, etc.) directly within your Opencode environment.

Installation

You can install this plugin directly from GitHub:

npm install github:lutfi238/opencode-iflow-auth

Configuration

To use this plugin, you need to configure your opencode.json (usually located in ~/.opencode/opencode.json or your project root).

1. Add the Provider

Add iflow to your providers list and point it to the installed plugin.

{
  "providers": {
    "iflow": {
      "plugin": "opencode-iflow-auth"
    }
  }
  // ...
}

2. Configure Models

Add the iFlow models you want to use to the models array. You can configure their context limits and capabilities below.

{
  "models": {
    "iflow-glm-4.7": {
      "name": "GLM-4.7 (iFlow)",
      "provider": "iflow",
      "modelId": "glm-4.7",
      "limit": { "context": 200000, "output": 128000 },
      "modalities": { "input": ["text"], "output": ["text"] }
    },
    "iflow-deepseek-v3.2": {
      "name": "DeepSeek-V3.2 (iFlow)",
      "provider": "iflow",
      "modelId": "deepseek-v3.2",
      "limit": { "context": 128000, "output": 8192 },
      "modalities": { "input": ["text"], "output": ["text"] }
    },
    "iflow-qwen3-coder": {
      "name": "Qwen3-Coder-Plus (iFlow)",
      "provider": "iflow",
      "modelId": "qwen3-coder-plus",
      "limit": { "context": 256000, "output": 16384 },
      "modalities": { "input": ["text"], "output": ["text"] }
    },
    "iflow-kimi-k2-thinking": {
      "name": "Kimi-K2-Thinking (iFlow)",
      "provider": "iflow",
      "modelId": "kimi-k2-thinking",
      "limit": { "context": 256000, "output": 16384 },
      "modalities": { "input": ["text"], "output": ["text"] },
      "variants": {
        "thinking": { "thinkingLevel": "high" }
      }
    },
    "iflow-rome-preview": {
      "name": "iFlow-ROME-30BA3B (Preview)",
      "provider": "iflow",
      "modelId": "iflow-rome-30ba3b",
      "limit": { "context": 256000, "output": 16384 },
      "modalities": { "input": ["text"], "output": ["text"] }
    },
    "iflow-minimax-m2.1": {
      "name": "MiniMax-M2.1 (iFlow)",
      "provider": "iflow",
      "modelId": "minimax-m2.1",
      "limit": { "context": 200000, "output": 128000 },
      "modalities": { "input": ["text"], "output": ["text"] }
    },
    "iflow-kimi-k2.5": {
      "name": "Kimi-K2.5 (iFlow)",
      "provider": "iflow",
      "modelId": "kimi-k2.5",
      "limit": { "context": 256000, "output": 16384 },
      "modalities": { "input": ["text"], "output": ["text"] }
    },
    "iflow-kimi-k2-0905": {
      "name": "Kimi-K2-0905 (iFlow)",
      "provider": "iflow",
      "modelId": "kimi-k2-0905",
      "limit": { "context": 256000, "output": 16384 },
      "modalities": { "input": ["text"], "output": ["text"] }
    }
  }
}

Usage

  1. Start Opencode.
  2. Select one of the iFlow models (e.g., GLM-4.7 (iFlow)).
  3. The first time you use it, the plugin will launch your browser to authenticate with iflow.cn.
  4. Log in with your phone number as requested by the iFlow platform.
  5. Once authenticated, you will be redirected back to localhost, and Opencode will store your session.

Troubleshooting

  • Browser doesn't open? Check your terminal output. The login URL is printed there; you can copy and paste it manually.
  • Port conflict? The plugin attempts to find a random free port for the callback server. If you have firewalls blocking local connections, ensure you allow Node.js to listen on localhost.

License

MIT