What OpenCode is
OpenCode is a coding assistant that runs in the terminal. You type a request in plain language — for example, asking it to create a simple web page — and the tool helps you write, explain, and fix code in your project.
Because it works inside your project folder, OpenCode can read existing files, suggest changes, and help you understand the parts of the code that are not yet familiar. Think of it as a companion that learns alongside you, not a replacement for your own understanding.
Why it suits beginners
For beginners, the biggest obstacle is usually not typing code, but knowing where to start and understanding error messages. A few things that help:
- You can ask in everyday language, without having to memorize technical terms.
- Every change can be explained, so you learn from the process.
- Small projects can be tried right away on your own server or computer.
Setting up the environment
Before starting, make sure Node.js is installed. Check the version with the following command:
node -v
npm -v
Running the first command
Go into your project folder, then run OpenCode. Start with a small, specific request, for example creating a file that contains the page structure.
cd proyek-saya
opencode
# then type a request, for example:
# "Create a simple index.html with a title and one paragraph"
Tips for writing instructions
The quality of the result depends heavily on how clear your request is. A few habits that help:
- State the purpose, for example "a small business profile page".
- State the constraints, such as "no framework, just HTML and CSS".
- Ask for an explanation when there is a part you don't understand yet.
- Change things gradually in small steps, then test each change.
Security notes
Never paste passwords, API tokens, or secret keys into a conversation or shared code. Keep secrets in a .env file and make sure that file is not uploaded to a public repository. Read every command before running it, especially commands that delete or overwrite files.
Ask via WhatsApp and we'll explain it in plain language.