Artificial Intelligence 10 min read

Integrating DeepSeek AI Assistant into IntelliJ IDEA for Java Development

This article provides a step‑by‑step guide to installing the DeepSeek AI code‑assistant plugin (via CodeGPT) in IntelliJ IDEA, configuring the required Python environment and API key, using its code‑completion, explanation, and question‑answer features, and also includes usage statistics and a brief promotion of a paid plugin bundle.

Top Architecture Tech Stack
Top Architecture Tech Stack
Top Architecture Tech Stack
Integrating DeepSeek AI Assistant into IntelliJ IDEA for Java Development

Welcome to the "Top Architecture Tech Stack" article, which introduces how to integrate the DeepSeek AI assistant into IntelliJ IDEA for Java developers, enhancing coding efficiency with an intelligent helper.

Introduction

The post notes the rapid rise of AI tools in programming and highlights DeepSeek as a high‑performance option that can be added to IDEA.

1. Environment Preparation

IDEA Version Compatibility

Use IntelliJ IDEA 2023.x or newer and install the CodeGPT plugin (an AI‑driven code assistant) as a replacement for GitHub Copilot and similar tools.

Python Environment

DeepSeek requires Python 3.7+; ensure it is installed and added to the system PATH.

Macbook:GithubCommitSpace Aion$ python --version
Python 3.12.8
Macbook:GithubCommitSpace Aion$

2. Download and Install DeepSeek Plugin

Install AI‑Driven Code Assistant from IDEA Marketplace

Open IDEA, go to Settings (Windows/Linux) or IntelliJ IDEA → Preferences (macOS), select Plugins , search for CodeGPT , and install it.

Create and Set API Key

Obtain an API key from the DeepSeek Open Platform ( https://www.deepseek.com/ ) and enter it in the DeepSeek settings within IDEA.

Configure DeepSeek in IDEA

In the CodeGPT settings, under Custom OpenAI , configure three sections:

API Key – paste the key obtained earlier.

Chat model – set URL to https://api.deepseek.com/chat/completions and model to deepseek-chat .

Reasoning model – enable code completions, select the DeepSeek Coder FIM template, set URL to the same endpoint, and choose model deepseek-reasoner .

3. Using DeepSeek for Programming

Getting Ideas and Code

Open the CodeGPT component, select Custom OpenAI , and type a prompt such as "Write a Java method to filter numbers and provide a test".

public class TestNumberFilter {
    public static String filterNumbers(String input) {
        // Use regex to keep only digits
        return input.replaceAll("[^0-9]", "");
    }
    public static void main(String[] args) {
        String testInput2 = "SSFSDFS结论萨芬122432的噶大都是4无人区是14认识832safsss";
        String result = filterNumbers(testInput2);
        System.out.println("Filtered numbers: " + result);
    }
}

Code Completion

Press Ctrl + Space (or a custom shortcut) to let DeepSeek suggest the rest of the code based on context.

Code Explanation

Select a code block, right‑click, choose CodeGPT , and DeepSeek will explain its functionality.

Question Answering

Highlight code or describe an issue, then select CodeGPT: Ask Question to receive targeted solutions.

4. DeepSeek Usage Statistics

The article shows token usage charts for the deepseek-chat model, including daily request counts and estimated costs.

Conclusion

Following these steps successfully integrates DeepSeek into IDEA, allowing developers to enjoy AI‑assisted coding, explanations, and troubleshooting.

Promotional Section: Paid Plugin Bundle

The author also advertises a "Dedicated Paid Bundle" that includes popular paid plugins (e.g., Rainbow Brackets, MyBatisCodeHelperPro, Fast Request) for a yearly fee of 69 CNY, and mentions a free IntelliJ IDEA activation via an AI Assistant account.

JavaDeepSeekCodeGPTIntelliJ IDEAAI code assistantPlugin integration
Top Architecture Tech Stack
Written by

Top Architecture Tech Stack

Sharing Java and Python tech insights, with occasional practical development tool tips.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.