SkillAgentSearch skills...

Kimi

The Node.js client and CLI for Moonshot AI(Kimi).

Install / Use

/learn @JacksonTian/Kimi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

The Node.js library and CLI for Moonshot AI

Node.js CI codecov NPM version npm download

Installation/安装

npm i @jacksontian/kimi # for scripting

Usage

import Kimi from '@jacksontian/kimi';

const client = new Kimi({
    // Do not hard code it here, read it from configuration or enviroment variables
    apiKey: 'The API key for moonshot AI'
});
const response = await client.models();

API

  • Chat

    • chat()
    • models()
    • estimateTokenCount()
  • Files

    • putFile()
    • putFileStream()
    • files()
    • getFile()
    • getFileContent()
    • deleteFile()
  • Others

    • getBalance()

The detail of parameters can be found at https://platform.moonshot.cn/docs/api-reference or test/kimi.test.js.

License

The MIT license.

View on GitHub
GitHub Stars27
CategoryDevelopment
Updated2d ago
Forks4

Languages

JavaScript

Security Score

95/100

Audited on Apr 3, 2026

No findings