Chapter 6: Client/Server and Remote Workflows

April 13, 2026 ยท View on GitHub

Welcome to Chapter 6: Client/Server and Remote Workflows. In this part of OpenCode Tutorial: Open-Source Terminal Coding Agent at Scale, you will build an intuitive mental model first, then move into concrete implementation details and practical production tradeoffs.

OpenCode's client/server architecture enables remote control patterns beyond a single terminal session.

Why This Matters

Remote-capable architecture supports:

  • persistent coding sessions
  • device handoff workflows
  • desktop/mobile companion clients
  • shared team operations patterns

Operational Design Considerations

ConcernPractice
session persistencedefine lifecycle and timeout policy
authshort-lived credentials and rotation
transport securityencrypted channel and boundary controls
remote execution riskpolicy-gated command surfaces

Source References

Summary

You now understand how OpenCode can evolve from local tooling into a remote-capable agent platform.

Next: Chapter 7: Integrations: MCP, LSP, and Extensions

How These Components Connect

flowchart LR
    A[Remote Client] --> B[OpenCode Server]
    B --> C[Session Manager]
    C --> D[Agent Runtime]
    D --> E[Shared Workspace]
    B --> F[Auth Layer]
    F --> C