Skip to content

Remote Development: Execute Code on Remote Server, but Route Model API Calls & Authentication via Local Machine #8795

@xiaojueshi

Description

@xiaojueshi

Question

I'm developing in a hybrid environment where:

  1. Project code resides/runs on a remote server (for computational requirements or data constraints).
  2. The server is in a restricted internal network with no outbound access to model APIs (e.g., OpenAI, Anthropic) or authentication endpoints.
  3. I need OpenCode (installed locally on my Mac) to:
    • Connect to the remote server for code editing/synchronization.
    • Execute scripts on the remote server's environment (leveraging its resources).
    • But route all model API calls and authentication exclusively through my local Mac (which has internet access and stores credentials securely).

I previously tried directory mounting, but it broke script execution paths and dependencies.

Does OpenCode support this workflow natively?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions