Opencode
AI coding agent built for the terminal
Opencode is a powerful, open-source AI coding agent built specifically for the terminal, featuring a native, responsive, and themeable terminal user interface. Opencode offers developers terminal-based coding assistance, debugging, file management, and command execution — all within the CLI.
This guide will walk you through the setup process and show you how to combine Opencode with Cortecs for enhanced productivity.
1. Install Opencode
Run the following command in your terminal to install Opencode:
curl -fsSL https://opencode.ai/install | bash
For additional installation options, refer to the Opencode documentation.
2. Connect to cortecs
Cortecs provides a native integration for Opencode:
Run the authentication command:
opencode auth login
Select Cortecs as the provider:

Enter your Cortecs API key and press Enter:

Your authentication is now complete ✅.
3. Start using Opencode
Launch Opencode by typing
opencode
in your console:

Once the Opencode terminal opens, start a new session using
/new
, then use/models
to view and select a model:

Choose the model you want to use and press Enter ✅.
💡 Tip: If you’re looking for a specific model, you can either:
Join the Discord community 💬 and request it, or
Add it directly to the Models.dev open-source database in the Cortecs provider folder.
You’re all set! 🎉
You can now start a discussion with your AI agent!

Enjoy the power of Cortecs and Opencode, explore different models, and share feedback with the community on Discord 👩💻👨💻.
Last updated