OpenCode installation course guide. How does AI Skills work

RecentlySkills"IT'S TOO HOT IN AI

Everybody's using it to add all kinds of "buffs," make it write code, form, etc

But a lot of little friends are watching GitHub get excited about the Skills, and when the locals want to play, there's a lot of trouble with Claude code

I've been asked by a lot of young people beforeOpenCodeI'll borrow Skills to talk about OpenCode's deployment and use

It's very simple, whether you want to use a graphical or a command lineTutorialIt'll make it easy for you

Let's start with OpenCode. Skills

Table of contents:

1. How to download and install OpenCode

2. How to install and configure Skills

3. Method of setting environmental variables

4. Common commands and operating techniques

5. How to address problems encountered

6. How to create their own Skills

I. Download installation, super simple

Download address:

https://opencode.ai/download

b3acdb42j00t9xmhb000sd000u000gp

in order for you to reduce the unnecessary time consumption associated with the deployment of the installation, we can choose to use the windows desktop-end approach. the software installation is simple and will not be repeated here。

once installed, there will be three exe programs under the directory:

6d868886j00t9xmj40007d000em003qp

• OpenCode.exe - This is the OpenCode desktop end. It's with an interface. The whole interface is clear

ec5382f8j00t9xmi2000d000uelp

• OpenCode-cli.exe - THAT'S THE CLASSIC COMMAND LINE MODE

58e3f363j00t9xmih000ld000u000dup

• i'm sorry - Unmount Program

II. Installing Skills to experience more functionality

let's start with a few skills to experience, configuration, operation, etc。

Double-click OpenCode-cli.exe to open the interface and ask "What can I use?"

2bd5a730j00t9xmj000pd000u000gmp

as you can see from the above, i don't have any skills, okay, let's add some now

  • LITTLE TIP: I'VE CONFIGURED MY OWN MODEL, SO THE MODEL YOU SEE HERE MAY NOT BE THE SAME, BUT IT DOESN'T MATTER, AND THEN I'LL TELL YOU HOW TO CONFIGURE THE API。

next, let's download the compressor pack from skills website, or we can download skills from github

Here's an official Skills presentation

  • 1. create a directory under the software installation catalogue called .opencode, with a good look
  • 2. GitHub address: https://github.com/antropics/skills
  • 3. when the download is completed, the following contents will be visible with the uncompression file

b38f2827j00t9xmku000d000ib006bp

  • 4. copy the skills here into the directory that was just created
    return to opencode and enter/init back into it, at which point it will be seen that opencode is beginning to understand the project and load these skills。

9a8a389g00t9xmgg00n2d000tz00jpm

  • Notice: Before entering/init, you need to press the tab of the keyboard to switch the plan to the bild mode。

Verify Installation"what can i use?"

6196bd6j00t9xmmg001ed000u09tp

Opencode will know what you have skills

OpenCode.exe is used the same way。

15a5532aj00t9xmne001id000ms00k5p

III. Environmental variables, flexible and convenient

OpenCode does not need an opencode.json file to run because it has default configuration and multiple configuration loads. Here are two of the most common:

1. Global configuration

~.config/opencode/opencode.json

Global context variable path: C:\Users\your username\.config\opencode

2. Project configuration

opencode.json in the project directory

Project Environment Variable: A path can be configured at will. For example, my project path is at D:\Software-Install\OpenCode\.opencode

IV. Common commands. Just remember these

1. Switch mode

OpenCode has two models:planandi'm not sure what i'm talking about, use Tab to switch。

b8531fb6g00t9xmgg0027d000ty00fgm

If you use the desktop end, or OpenCode.exe, it's all graphical. It's simple。

7c835b02g00t9xmgg0020d000hs0043m

2. Choose a model

use/models, provide 3 free models by default (free, so link failure occurs)

76be99f2g00t9xmg00jqd000tz00fxm

1 46441d1g00t9xmgg00aed000hs00bjm

3. ADDING ITS OWN MODEL API

many options are provided here。

a531e717g00t9xmgg0088ud000tz00f3m

4. citations skills

as long as the trigger conditions for skills are included in the input, the corresponding skills can normally be called, or the required skills can be specified by @, the top and lower key selection and the return key confirmation. desktop-end operations are the same

5. Summary of main slash commands

Command Category
Command
Functional Description
Connections and Settings
/connect
New LLM providers (e.g. Anthropic, OpenAI)
/models
LIST AND SWITCH AVAILABLE AI MODELS
/themes
Toggle the theme of the terminal interface
/help
Show help dialog
Dialogue management
/new
Start a new conversation
this post is part of our special coverage syria protests 2011
List all historical conversations and switch them
this post is part of our special coverage global voices 2011
Compact the current dialogue content to save context window
/export
Export Word Record to File
/share
Generate a shared link to the current dialogue
Edit and Undo
/undo
UNDO PREVIOUS AI MESSAGE AND ALL FILE CHANGES IT BRINGS
/redo
Redo cancelled changes
it's not like it's a bad idea
Open External Editor
Project and Agent
/init
Initialize projects, scan and generate AGENTS.md files to help AI understand project structures
/agents
Switch or manage AI agents (e. g. Plan/Build mode)
/review
Review of unsubmitted code changes
photo by /mcp
Manage Model Context Protocol (ModelContext Protocol)
other
/exit
Exit OpenCode Application

V. Operational demonstration. What about problems

Question 1: What does Opencode do

Just ask him A default model is enough。

de08cca4j00t9xmpz001nd000rv00ajp

from here it becomes clear that if i want to create a project-level configuration, then first i have to go into a specified project, open an opencode in the directory, then execute/init, and then create a project-based configuration。

This tiered system allows you to have both a global personal preference and a customized configuration for each project

question 2: what if skills doesn't work

Just ask it:

@You need to know SKILLS, and add "How does this skills work?"

c6ac6e83j00t9xml001cd000s7009op

QUESTION 3: WHERE IS THE ADDED MODEL API KEPT

no configuration can be used for free large models, but if you want to use your own model and use/connect to open the model configuration interface to choose your own model provider

FOR EXAMPLE, I'M USING ARI TO PASTE THE MODEL API AND GET BACK TO THE CAR。

THE QUESTION IS, WHERE'S THE API I FILLED IN

27403c8ej00t9xmrf000gd000jd0086p

Save default in the following path:

C:\Users\yourusername\.local\share\opencode\auth.json

issue 4: create your own skills

all you have to do is @skill-creater, and you'll have to explain your skill description. for example:

7ec33ddej00t9xms7000zd000ld00ggp

OpenCode will automatically generate the skill profile according to your description, and the whole process is very intelligent. You just have to tell it what you want and leave the rest to it

Next you can:

• Try to create your own Skills so AI can automate your work

• Explore more open-source Skills on GitHub and expand your toolbox

statement:The content of the source of public various media platforms, if the inclusion of the content violates your rights and interests, please contact the mailbox, this site will be the first time to deal with.
Encyclopedia

From zero, Clawdbot completes the course

2026-2-2 16:36:38

TutorialEncyclopedia

Clawdbot (OpenClaw) babysitting course, hand hands on Agent

2026-2-5 13:20:32

Zenium
Search