# opencode-ai/opencode

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/opencode-ai-opencode).**

11,006 stars · 1,045 forks · Go · mit · archived

## Links

- GitHub: https://github.com/opencode-ai/opencode
- awesome-repositories: https://awesome-repositories.com/repository/opencode-ai-opencode.md

## Topics

`ai` `claude` `code` `llm` `openai`

## Description

OpenCode is a terminal-based development agent that automates software engineering tasks by integrating artificial intelligence directly into the command-line environment. It functions as an autonomous workflow orchestrator, capable of executing file operations, running shell commands, and applying code patches to complete complex development tasks without manual intervention.

The tool distinguishes itself through its ability to index local codebases into vector embeddings, enabling semantic search and natural language queries across project files. It maintains session context through a local database that stores and summarizes interaction history, ensuring that long-running development sessions remain within model token limits. Users can further customize their experience by configuring agent parameters and switching between various commercial or self-hosted intelligence backends.

Beyond its core agentic capabilities, the project provides utilities for schema-driven type generation, which inspects database definitions to produce type-safe interfaces. It also supports the definition of custom commands to streamline repetitive terminal workflows and integrates with external development tools through standardized messaging protocols.

## Tags

### Development Tools & Productivity

- [Agent Command Line Interfaces](https://awesome-repositories.com/f/development-tools-productivity/terminal-shell-cli/cli-tooling-frameworks/cli-tooling/agent-integration-interfaces/agent-command-line-interfaces.md) — Functions as a terminal-based development agent that automates coding and system operations via LLMs.
- [Codebase Search Engines](https://awesome-repositories.com/f/development-tools-productivity/developer-utilities-libraries/workflow-productivity-enhancers/developer-productivity-utilities/code-search-utilities/codebase-search-engines.md) — Provides a specialized search engine for traversing and querying source code patterns and logic.
- [Automated Codebase Maintenance](https://awesome-repositories.com/f/development-tools-productivity/workflow-automation-tools/development-automation/automated-codebase-maintenance.md) — Performs file searches and code modifications to accelerate maintenance workflows. ([source](https://github.com/opencode-ai/opencode#readme))
- [Development Workflow Automation](https://awesome-repositories.com/f/development-tools-productivity/development-workflow-automation.md) — Streamlines repetitive terminal workflows through custom prompt commands and automated task execution.
- [Schema-Driven Code Generators](https://awesome-repositories.com/f/development-tools-productivity/project-scaffolding-config-code-generation/code-generation/schema-driven-code-generators.md) — Parses database definitions to automatically produce type-safe source code interfaces.
- [CLI Automation Tools](https://awesome-repositories.com/f/development-tools-productivity/cli-automation-tools.md) — Automates repetitive terminal tasks through non-interactive command-line scripts. ([source](https://github.com/opencode-ai/opencode/blob/main/README.md))
- [Codebase Indexing](https://awesome-repositories.com/f/development-tools-productivity/codebase-indexing.md) — Processes and indexes local source code to provide context for development assistants. ([source](https://github.com/opencode-ai/opencode/blob/main/main.go))
- [Language Server Protocols](https://awesome-repositories.com/f/development-tools-productivity/platforms-runtimes-language-services/language-server-protocols.md) — Connects to external development tools using standardized messaging for intelligent code analysis.
- [Terminal Automation](https://awesome-repositories.com/f/development-tools-productivity/terminal-automation.md) — Executes automated workflows directly from the command line to handle system tasks. ([source](https://github.com/opencode-ai/opencode#readme))

### Artificial Intelligence & ML

- [Autonomous Coding Agents](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-coding-assistants/autonomous-coding-agents.md) — Acts as an autonomous terminal-based agent that executes complex software engineering workflows.
- [Autonomous AI Workflows](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-coding-assistants/autonomous-coding-agents/autonomous-ai-workflows.md) — Executes end-to-end development cycles including analysis, modification, and verification without manual intervention. ([source](https://github.com/opencode-ai/opencode/blob/main/README.md))
- [AI Command Line Automation](https://awesome-repositories.com/f/artificial-intelligence-ml/artificial-intelligence-tooling/agent-and-tool-integrations/ai-command-line-automation.md) — Provides a command-line interface for interacting with intelligence models to automate development tasks.
- [Agentic Loops](https://awesome-repositories.com/f/artificial-intelligence-ml/agent-architectures/ai-agents/execution-runtimes/agentic-loops.md) — Orchestrates autonomous cycles where models observe, reason, and perform actions to achieve development goals.
- [AI-Assisted Development Tools](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-assisted-development-tools.md) — Leverages artificial intelligence to automate coding tasks, file operations, and system commands.
- [Terminal AI Automation](https://awesome-repositories.com/f/artificial-intelligence-ml/terminal-ai-automation.md) — Integrates artificial intelligence capabilities directly into terminal-based workflows for coding assistance. ([source](https://github.com/opencode-ai/opencode#readme))
- [Conversation History Management](https://awesome-repositories.com/f/artificial-intelligence-ml/context-management-tools/conversation-history-management.md) — Compresses and tracks tokens in long-running sessions to maintain context within model limits. ([source](https://github.com/opencode-ai/opencode/blob/main/README.md))
- [Conversation State Persistence](https://awesome-repositories.com/f/artificial-intelligence-ml/conversation-state-management/conversation-state-persistence.md) — Persists chat history and session metadata in a local database to maintain context across sessions.
- [Conversational Session Management](https://awesome-repositories.com/f/artificial-intelligence-ml/conversational-session-management.md) — Maintains context across multi-turn dialogues by tracking unique session identifiers in a local database. ([source](https://github.com/opencode-ai/opencode#readme))
- [Model Abstractions](https://awesome-repositories.com/f/artificial-intelligence-ml/model-abstractions.md) — Provides unified interfaces for interacting with diverse AI model APIs and local providers.

### Operating Systems & Systems Programming

- [AI-Assisted Terminal Interfaces](https://awesome-repositories.com/f/operating-systems-systems-programming/terminal-command-line-environments/terminal-development-environments/ai-assisted-terminal-interfaces.md) — Integrates AI-driven coding assistance and task execution directly into the terminal environment.

### Data & Databases

- [Search and Indexing](https://awesome-repositories.com/f/data-databases/search-indexing-technologies/search-indexing/search-and-indexing.md) — Combines data indexing with search functionality to enable fast information discovery across codebases. ([source](https://github.com/opencode-ai/opencode/blob/main/README.md))
- [Semantic Search Engines](https://awesome-repositories.com/f/data-databases/search-indexing-technologies/search-indexing/search-information-retrieval/semantic-search-engines.md) — Uses vector embeddings to enable semantic retrieval of logic and definitions across the codebase.
- [Vector Embedding Indexes](https://awesome-repositories.com/f/data-databases/vector-search/vector-embedding-indexes.md) — Converts source code into numerical embeddings stored in a local database for semantic search.
- [Type-Safe Client Generators](https://awesome-repositories.com/f/data-databases/type-safe-client-generators.md) — Automatically generates type-safe code from database definitions to prevent runtime errors.
- [Type-Safe Database Clients](https://awesome-repositories.com/f/data-databases/type-safe-database-clients.md) — Generates type-safe interfaces from database schemas to ensure consistent data interaction.
- [Type-Safe Query Builders](https://awesome-repositories.com/f/data-databases/type-safe-query-builders.md) — Provides compile-time validation for database queries based on schema definitions. ([source](https://github.com/opencode-ai/opencode/blob/main/sqlc.yaml))
