跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    balcsida

    Provider Tabnine

    v0.1.5模型接入
    opencode-provider-tabnine

    OpenCode plugin that exposes Tabnine Agentic as a provider

    GitHub 星标

    0

    月装机量

    478

    近 7 天 46

    综合评分SCORE

    36.5

    生态多维模型

    最近提交

    2 天前

    2026-08-17

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-provider-tabnine@0.1.5"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    OpenCode plugin that exposes Tabnine Agentic models as provider tabnine.

    Install

    Install OpenCode, then install the provider plugin from npm:

    opencode plugin -g opencode-provider-tabnine
    opencode auth login --provider tabnine
    

    Enter your Tabnine tenant URL when prompted, then choose browser or manual login. TABNINE_HOST configures normal provider operation but is not used to prefill the interactive login prompt.

    Use From Source

    Add the plugin to an OpenCode config:

    {
      "plugin": ["file:///absolute/path/to/opencode-tabnine"]
    }
    

    Then authenticate:

    opencode auth login tabnine
    

    For normal provider operation, set TABNINE_HOST or make sure Tabnine CLI has ~/.tabnine/agent/settings.json with general.tabnineHost. Use your Tabnine tenant URL:

    export TABNINE_HOST=https://tabnine.example.com
    

    Browser login starts a local callback server and opens Tabnine's custom-token login page. The plugin also honors TABNINE_TOKEN, TABNINE_JWT, and TABNINE_REFRESH_TOKEN for non-interactive configuration.

    After the first login, restart OpenCode so the config hook can load the persisted Tabnine host and refresh token, then choose provider tabnine.

    Models

    When credentials are available, the plugin calls GET /chat/v2/models, filters to models with the agent capability, and registers the live list. Model IDs are tenant-specific, so the plugin does not bundle a fallback catalog.

    Development

    bun install
    bun run check
    bun run clean && bun run build
    npm pack --dry-run