Advertisement
Telegram ads for your business · TCA Media
Advertisement
Telegram ads for your business · TCA Media
AI

Getting the Most Out of AI on a Minimal Budget, or Anyone Can Program

The guide explains how to set up OpenCode with DeepSeek via Alipay and create agents for work tasks. Use in the workplace must be coordinated with the security service.

17 Nov, 23:45Read in Russian
habr.com

To get started, you need a computer, a valid foreign passport, and a small amount of money. The guide suggests a benchmark of 100 rubles, but expenses depend on the minimum transfer available through Alipay at a specific bank.

OpenCode can be installed as a terminal, web, or desktop application. After registering with DeepSeek, the balance can be topped up via Alipay: a Russian phone number is suitable for registration, but verification via a foreign passport and a selfie will be required. Then, in OpenCode, select DeepSeek, add an API key from platform.deepseek.com, and connect the deepseek-flash model. Error 401 indicates an incorrect key, while 402 means insufficient funds in the account.

For initial familiarization, free OpenCode models are suitable. For actual work, the guide recommends the paid DeepSeek: free options may limit usage time, and some use data for improvement. Tasks should be formulated specifically and without overloading the context. Calculations are better assigned to scripts: agents perform poorly in calculations, and Python may be needed for automation.

Advertisement
Telegram ads for your business · TCA Media

OpenCode includes a main agent and sub-agents. The main agent interacts directly with the user, while assistants can be connected manually or through it. The built-in Explore feature quickly searches through the project, and General handles complex multi-step tasks. A custom assistant, such as a financial analyst, can be created via chat—the application will automatically save its description.

Project rules are recorded in AGENTS.md. This file contains information about tasks and limitations, and both the main agent and sub-agents read it at the start of a session. Commands allow combining several actions: for example, sequentially invoking a financial analyst, developer, and tester.

To save costs, the author advises writing system instructions, agent descriptions, and skills in English: according to the material, such text uses approximately 38% fewer tokens than Russian. Communication with the agent can still be in Russian, while the final prompt should be translated into English separately.