Opencode

AI coding agent built for the terminal

Opencodearrow-up-right 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.

circle-info

Before you begin: Make sure you have generated your Cortecs API key. If not, check out our QuickStartarrow-up-right guide.

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 documentationarrow-up-right.

2. Connect to cortecs

Cortecs provides a native integration for Opencode:

  1. Run the authentication command:

opencode auth login
  1. Select Cortecs as the provider:

  1. Enter your Cortecs API key and press Enter:

Your authentication is now complete .

3. Start using Opencode

  1. Launch Opencode by typing opencode in your console:

  1. 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:

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 Discordarrow-up-right 👩‍💻👨‍💻.

Last updated