IDE Integration

Integrate Thox.ai with your development environment for seamless AI-assisted coding.

VS Code Extension

Installation

  1. 1Open VS Code and go to the Extensions view (Ctrl+Shift+X)
  2. 2Search for "Thox.ai" and click Install
  3. 3Restart VS Code when prompted

Configuration

Add to your settings.json:

{
  "thox.host": "thox.local",
  "thox.port": 8080,
  "thox.model": "thox-coder",
  "thox.enableInlineCompletion": true,
  "thox.completionDelay": 300,
  "thox.maxTokens": 500
}

Features

Inline Completions

Get AI suggestions as you type

Chat Panel

Ask questions in the sidebar

Code Actions

Explain, refactor, add tests

Context Awareness

Uses workspace context

Keyboard Shortcuts

Accept CompletionTab
Dismiss CompletionEscape
Open ChatCtrl+Shift+T
Explain SelectionCtrl+Shift+E

JetBrains Plugin

Works with IntelliJ IDEA, PyCharm, WebStorm, GoLand, and all JetBrains IDEs.

Installation

  1. 1Open Settings/Preferences → Plugins
  2. 2Search for "Thox.ai" in the Marketplace
  3. 3Click Install and restart your IDE

Configuration

Go to Settings → Tools → Thox.ai to configure:

  • Device host and port
  • Preferred model
  • Completion trigger delay
  • Enable/disable inline suggestions

Neovim Setup

Installation (lazy.nvim)

{
  "thoxai/thox.nvim",
  dependencies = { "nvim-lua/plenary.nvim" },
  config = function()
    require("thox").setup({
      host = "thox.local",
      port = 8080,
      model = "thox-coder",
      keymaps = {
        accept = "<Tab>",
        dismiss = "<Esc>",
        chat = "<leader>tc",
      },
    })
  end,
}

Installation (packer.nvim)

use {
  'thoxai/thox.nvim',
  requires = { 'nvim-lua/plenary.nvim' },
  config = function()
    require('thox').setup()
  end
}

Commands

:ThoxChatOpen chat window
:ThoxExplainExplain selected code
:ThoxRefactorSuggest refactoring
:ThoxTestGenerate tests for function

Emacs Configuration

Installation (use-package)

(use-package thox
  :straight (:host github :repo "thoxai/thox.el")
  :config
  (setq thox-host "thox.local"
        thox-port 8080
        thox-model "thox-coder")
  (global-thox-mode 1))

Installation (Doom Emacs)

;; In packages.el

(package! thox :recipe (:host github :repo "thoxai/thox.el"))

;; In config.el

(use-package! thox

:config (global-thox-mode 1))

Key Bindings

Chat with ThoxC-c t c
Explain RegionC-c t e
Refactor RegionC-c t r
Generate TestsC-c t t