Skip to content

tunnel-setup doesn't work #2

@arisgrout

Description

@arisgrout

Installing custom domain doesn't work:

❯ npx opencode-mobile install
...

☁️ Cloudflare Tunnel Setup

✅ cloudflared found at: /home/linuxbrew/.linuxbrew/bin/cloudflared

Cloudflare offers two modes:

  1. Free tier (trycloudflare.com) - No account needed
  2. Custom domain - Requires Cloudflare account + domain

Select mode (1/2): 2

🔐 You'll need to authenticate with Cloudflare.
Start authentication now? (y/n): y

🔐 Starting Cloudflare authentication...
A browser window will open. Please log in to your Cloudflare account.

/var/home/user/.npm/_npx/69ea572c67615110/node_modules/.bin/cloudflared: line 1: //: Is a directory
import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9351.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9351.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9351.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9351.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9351.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961.
import: missing an image filename url' @ error/import.c/ImportImageCommand/1289. import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9351. import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961. import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9351. import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961. import: unable to grab mouse '': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9351. import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4961. import: missing an image filename path' @ error/import.c/ImportImageCommand/1289.
/var/home/user/.npm/_npx/69ea572c67615110/node_modules/.bin/cloudflared: line 4: syntax error near unexpected token (' /var/home/user/.npm/_npx/69ea572c67615110/node_modules/.bin/cloudflared: line 4: var getFilename = () => fileURLToPath(import.meta.url);'

❌ Authentication failed. Please try again.

💡 Configuration saved to:
/var/home/user/.config/opencode-mobile/tunnel-config.json

🎉 Installation complete!
Restart OpenCode (run opencode) to load the plugin.
Use /mobile in any project to access mobile features.

Manual tunnel-setup command doesn't exist

❯ npx opencode-mobile tunnel-setup
Unknown command: tunnel-setup
Run 'npx opencode-mobile --help' for usage.

No instructions in README for manual configuration

of ~/.config/opencode-mobile/tunnel-config.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions