ITPub博客

首页 > 人工智能 > 人工智能 > ModelGate 支持 Claude Code,一键设置AI编程助手,开发效率极速提升!

ModelGate 支持 Claude Code,一键设置AI编程助手,开发效率极速提升!

原创 人工智能 作者:zizizi 时间:2025-07-30 22:07:22 0 删除 编辑

图片
上图就是最新版ModelGate的“应用推荐”界面,我们自研平台已支持直连 Claude Code,只需一键【运行】,AI编程效率工具即刻到手!

配置Claude Code,只需三步

步骤一:下载安装ModelGate

  • 访问官网 www.modelgate.net 下载客户端,安装完成后注册/登录账号。

步骤二:一键运行Claude Code

图片

  • 启动ModelGate,模型市场添加模型,例:DeepSeek(见上图)
  • 启动ModelGate,左侧菜单点击【应用推荐】
    图片
  • 找到 Claude Code, 点击【获取】、Node.js 、git安装

    Node.js下载地址 : https://nodejs.org/zh-cn/download/

    git下载地址 : https://git-scm.com/downloa

  • 环境完成,Windows端和Mac端需重启电脑,再次进入 Claude Code安装流程

步骤二:安装 Claude Code

图片

  • Cladude code安装几分钟,不要着急
  • Windows在安装Claude Code会打开 PowerShell 窗口
  • 安装过程中请不要关闭

图片

步骤三:添加 ModelGate 模型市场模型

1.选择主模型: 主模型用于主代码业务
2. 选择中模型: 中模型用于上下文管理、会话命名 

图片

    图片

    3.确定后,打开命令端 :输入 Claude Code, 即可开启 AI编程助手
    图片
    步骤四:测试Claude Code 有没有那么强?

    • 我们让他做一款小游戏,大概用了40秒!

      图片

    图片
      
       
      <!DOCTYPE 
      
      html
      >
      
        
      <
      html
      >
      
        
      <
      head
      >
      
            
      <
      title
      >扫雷游戏
      </
      title
      >
      
            
      <
      style
      >
      
                
      body {
      
                    
      font-family: Arial, sans-serif;
      
                    
      text-align: center;
      
                    
      margin-top: 
      50px;
      
                }
      
                
      #game {
      
                    
      margin: 
      20px auto;
      
                    
      display: inline-block;
      
                }
      
                
      .cell {
      
                    
      width: 
      30px;
      
                    
      height: 
      30px;
      
                    
      border: 
      1px solid 
      #999;
      
                    
      display: inline-block;
      
                    
      text-align: center;
      
                    
      line-height: 
      30px;
      
                    
      font-weight: bold;
      
                    
      cursor: pointer;
      
                    
      background-color: 
      #ddd;
      
                    
      vertical-align: top;
      
                }
      
                
      .revealed {
      
                    
      background-color: 
      #fff;
      
                }
      
                
      .mine {
      
                    
      background-color: red;
      
                }
      
                
      .flag {
      
                    
      background-color: 
      #ff0;
      
                }
      
                
      #controls {
      
                    
      margin: 
      20px;
      
                }
      
            
      </
      style
      >
      
        
      </
      head
      >
      
        
      <
      body
      >
      
            
      <
      h1
      >扫雷游戏
      </
      h1
      >
      
            
      <
      div
       
      id
      =
      
      "controls"
      >
      
                
      <
      button
       
      onclick
      =
      
      "initGame(10, 10, 15)"
      >初级 (10x10, 15雷)
      </
      button
      >
      
                
      <
      button
       
      onclick
      =
      
      "initGame(16, 16, 40)"
      > (16x16, 40雷)
      </
      button
      >
      
                
      <
      button
       
      onclick
      =
      
      "initGame(16, 30, 99)"
      >高级 (16x30, 99雷)
      </
      button
      >
      
            
      </
      div
      >
      
            
      <
      div
       
      id
      =
      
      "game"
      ></
      div
      >
      
            
      <
      script
      >
      
                
      let board = [];
      
                
      let rows, cols, mines;
      
                
      let gameOver = 
      false;
      
      
      
                 function  initGame( r, c, m) {               rows = r;               cols = c;               mines = m;               gameOver =  false;                document. getElementById( 'game'). innerHTML =  '';                createBoard();                placeMines();           }
                 function  createBoard() {               board = [];                for ( let i =  0; i < rows; i++) {                   board[i] = [];                    for ( let j =  0; j < cols; j++) {                       board[i][j] = {                            isMine:  false,                            revealed:  false,                            flagged:  false,                            value:  0                       };
                             const cell =  document. createElement( 'div');                       cell. className =  'cell';                       cell. dataset. row = i;                       cell. dataset. col = j;
                            cell. addEventListener( 'click',  () =>  handleClick(i, j));                       cell. addEventListener( 'contextmenu',  ( e ) => {                           e. preventDefault();                            handleRightClick(i, j);                       });
                             document. getElementById( 'game'). appendChild(cell);                   }                    document. getElementById( 'game'). appendChild( document. createElement( 'br'));               }           }
                 function  placeMines() {                let minesPlaced =  0;                while (minesPlaced < mines) {                    const row =  Math. floor( Math. random() * rows);                    const col =  Math. floor( Math. random() * cols);
                         if (!board[row][col]. isMine) {                       board[row][col]. isMine =  true;                       minesPlaced++;
                             // 更新周围格子的数字                        for ( let i =  Math. max( 0, row- 1); i <=  Math. min(rows- 1, row+ 1); i++) {                            for ( let j =  Math. max( 0, col- 1); j <=  Math. min(cols- 1, col+ 1); j++) {                                if (!board[i][j]. isMine) {                                   board[i][j]. value++;                               }                           }                       }                   }               }           }
                 function  handleClick( row, col) {                if (gameOver || board[row][col]. revealed || board[row][col]. flagged)  return;
                    board[row][col]. revealed =  true;                updateCell(row, col);
                     if (board[row][col]. isMine) {                   gameOver =  true;                    revealAllMines();                    alert( '游戏结束!你踩到了!');                    return;               }
                     if (board[row][col]. value ===  0) {                    // 如果是空白格子,自动展开周围的格子                    for ( let i =  Math. max( 0, row- 1); i <=  Math. min(rows- 1, row+ 1); i++) {                        for ( let j =  Math. max( 0, col- 1); j <=  Math. min(cols- 1, col+ 1); j++) {                            if (!board[i][j]. revealed && !board[i][j]. flagged) {                                handleClick(i, j);                           }                       }                   }               }
                     checkWin();           }
                 function  handleRightClick( row, col) {                if (gameOver || board[row][col]. revealed)  return;
                    board[row][col]. flagged = !board[row][col]. flagged;                updateCell(row, col);           }
                 function  updateCell( row, col) {                const cells =  document. querySelectorAll( '.cell');                const cell = [...cells]. find( c  =>                   c. dataset. row == row && c. dataset. col == col               );
                     if (board[row][col]. flagged) {                   cell. className =  'cell flag';                   cell. textContent =  '🚩';               }  else  if (board[row][col]. revealed) {                   cell. className =  'cell revealed';                    if (board[row][col]. isMine) {                       cell. className =  'cell mine';                       cell. textContent =  '💣';                   }  else  if (board[row][col]. value >  0) {                       cell. textContent = board[row][col]. value;                        // 不同数字可以设置不同颜色                       cell. style. color = [ 'blue',  'green',  'red',  'darkblue',  'brown',  'teal',  'black',    'gray'][board[row][col]. value- 1];                   }  else {                       cell. textContent =  '';                   }               }  else {                   cell. className =  'cell';                   cell. textContent =  '';               }           }
                 function  revealAllMines() {                for ( let i =  0; i < rows; i++) {                    for ( let j =  0; j < cols; j++) {                        if (board[i][j]. isMine) {                           board[i][j]. revealed =  true;                            updateCell(i, j);                       }                   }               }           }
                 function  checkWin() {                let unrevealedSafeCells =  0;                for ( let i =  0; i < rows; i++) {                    for ( let j =  0; j < cols; j++) {                        if (!board[i][j]. isMine && !board[i][j]. revealed) {                           unrevealedSafeCells++;                       }                   }               }
                     if (unrevealedSafeCells ===  0) {                   gameOver =  true;                    alert( '恭喜你赢了!');               }           }
                 // 默认初始化初级难度            window. onload =  function() {                initGame( 10,  10,  15);           };        </ script >    </ body >    </ html >

      完成,生成代码的准确能力,真的超级赞👍这次必须给打出99.9分,游戏体验没有一点乱码出现,简直太惊艳了!!! 图片




      ModelGate是什么?

      • 一站管理多模型:
          ModelGate 支持Claude Code等多家主流大模型,API配置统一管理,省去复杂切换。
      • 国内外大模型:
        GPT-4.1, Gemini , Claude ,Gork, Kimi-K2,DeepSeek,Qwen, Doubao
      • 内测限时体验:
          注册送千万Token,轻松畅享AI编程服务。
      • 稳定安全:
         高并发支持、数据加密,企业和开发者都能放心用。
      • 社区福利多多:
         邀请好友还能免费拿 ModelGate 币,激励共创AI时代!
      • ModelGate社区用户:
          用户数量超过10万,官网申请加入交流群,获取邀请码,可体验最新版本!

        图片

      总结

      ModelGate官网: https://www.modelgate.net

      ModelGate 让 Claude Code 的安装接入更简单,真正一键上手,解决国内开发者的痛点,让AI高效编程没有门槛。抓住AI浪潮,从现在起就用ModelGate开启高效智能工作流。


      来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70047035/viewspace-3092429/ ,如需转载,请注明出处,否则将追究法律责任。

      请登录后发表评论 登录
      全部评论

      注册时间:2025-07-22

      • 博文量
        4
      • 访问量
        2936