promotional bannermobile promotional banner

ChatJS

Access large language models from KubeJS using an OpenAI-compatible API.
death message example

death message example

function calling example

function calling example

Description

ChatJS

License

Access large language models from KubeJS using an OpenAI-compatible API.

Config

Edit the chatjs.server.toml file to change the OpenAI compatible API you are using.

Use the /chatjs set_apikey <your API Key> command to set your API Key (requires OP permission).

If everything is set up correctly, executing /chatjs models can list all available models (requires OP permission).

Example

Death message

Send a message after the player dies.

example/server_scripts/death_message

Function Calling

Enter @ai <What you want to say to AI> in Chat, the AI will execute game commands based on what you enter.

For example @ai Kill all slimes.

example/server_scripts/function_calling

License

This mod is distributed under LGPL-3.0 license

⚠️WARNING⚠️
The mod files (.jar files) published on Modrinth and CurseForge contain icon files under an ARR (All Rights Reserved) license. You are not allowed to redistribute these files elsewhere. If you need to modify the mod, you can compile it yourself from the source code (the default compilation does not include ARR-licensed content).

The ChatJS Team

profile avatar
  • 2
    Followers
  • 6
    Projects
  • 7.6M
    Downloads

More from im_gizmoView all

  • I have slept project image

    I have slept

    • 48.1K
    • Mods

    This mod resets all players' sleep counters after skipping the night in multiplayer mode, ensuring no phantoms spawn for those who didn't sleep.

    • 48.1K
    • May 12, 2026
    • Mods
    • +1
  • TaCZ JS project image

    TaCZ JS

    • 1.7M
    • Mods

    KubeJS TaCZ integration.

    • 1.7M
    • May 11, 2026
    • Mods
  • Save My Shaky Network project image

    Save My Shaky Network

    • 5.8M
    • Mods

    Block common mods from connecting to the internet without affecting the mods' functionality, preventing slow loading or game crashes caused by network issues.

    • 5.8M
    • April 29, 2026
    • Mods
    • +1
  • KeyBinding Hider project image

    KeyBinding Hider

    • 8.8K
    • Mods

    A simple mod for hiding specific key bindings in the GUI.

    • 8.8K
    • February 24, 2026
    • Mods
  • I have slept project image

    I have slept

    • 48.1K
    • Mods

    This mod resets all players' sleep counters after skipping the night in multiplayer mode, ensuring no phantoms spawn for those who didn't sleep.

    • 48.1K
    • May 12, 2026
    • Mods
    • +1
  • TaCZ JS project image

    TaCZ JS

    • 1.7M
    • Mods

    KubeJS TaCZ integration.

    • 1.7M
    • May 11, 2026
    • Mods
  • Save My Shaky Network project image

    Save My Shaky Network

    • 5.8M
    • Mods

    Block common mods from connecting to the internet without affecting the mods' functionality, preventing slow loading or game crashes caused by network issues.

    • 5.8M
    • April 29, 2026
    • Mods
    • +1
  • KeyBinding Hider project image

    KeyBinding Hider

    • 8.8K
    • Mods

    A simple mod for hiding specific key bindings in the GUI.

    • 8.8K
    • February 24, 2026
    • Mods