aboutsummaryrefslogtreecommitdiffstats
path: root/opencode-bin/opencode.1
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-03 18:17:29 +0200
committerDanilo M. <danix@danix.xyz>2026-04-03 18:17:29 +0200
commitebb26eac2948e02def3c7ac1ac23c4ecd345a5a7 (patch)
treec54b2a6d28a89333b771bdee05e6baa45fe0c94f /opencode-bin/opencode.1
parent1045963959ddfb697898fa90476f837aae4e2881 (diff)
downloadmy-slackbuilds-ebb26eac2948e02def3c7ac1ac23c4ecd345a5a7.tar.gz
my-slackbuilds-ebb26eac2948e02def3c7ac1ac23c4ecd345a5a7.zip
repo: flatten layout — move packages to root, extras to .extras/
- Move all packages from SlackBuilds/ to repo root - Move hooks/, docs/, nvchecker.toml to .extras/ - Update CLAUDE.md and README.md to reflect new structure Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'opencode-bin/opencode.1')
-rw-r--r--opencode-bin/opencode.167
1 files changed, 67 insertions, 0 deletions
diff --git a/opencode-bin/opencode.1 b/opencode-bin/opencode.1
new file mode 100644
index 0000000..ba2b76b
--- /dev/null
+++ b/opencode-bin/opencode.1
@@ -0,0 +1,67 @@
+.TH OPENCODE 1 "2025" "opencode" "User Commands"
+.SH NAME
+opencode \- open source AI coding agent for the terminal
+.SH SYNOPSIS
+.B opencode
+[\fIOPTIONS\fR]
+.SH DESCRIPTION
+.B opencode
+is an AI coding agent designed for the terminal. It provides a TUI
+(Terminal User Interface) for interacting with 75+ LLM providers
+including Anthropic Claude, OpenAI, Google Gemini, GitHub Copilot,
+and local models via Ollama.
+.PP
+It uses a client/server architecture allowing the server to run on
+one machine while being driven remotely from another client.
+.SH OPTIONS
+.TP
+.BR \-h ", " \-\-help
+Display help information and exit.
+.TP
+.BR \-v ", " \-\-version
+Print version number and exit.
+.TP
+.BR \-d ", " \-\-debug
+Enable debug logging.
+.TP
+.BR \-c " " \fIDIR\fR ", " \-\-cwd " " \fIDIR\fR
+Set the working directory for the session.
+.TP
+.BR \-p " " \fIPROMPT\fR ", " \-\-print " " \fIPROMPT\fR
+Run non-interactively with the given prompt and print the response,
+then exit. Useful for scripting and automation.
+.TP
+.BR \-f " " \fIFORMAT\fR ", " \-\-format " " \fIFORMAT\fR
+Output format when using \fB\-p\fR. Options: \fBtext\fR (default), \fBjson\fR.
+.TP
+.BR \-q ", " \-\-quiet
+Suppress the spinner animation. Useful when running from scripts.
+.SH ENVIRONMENT
+.TP
+.B OPENCODE_INSTALL_DIR
+Override the binary installation directory used by the install script.
+.TP
+.B XDG_BIN_DIR
+XDG Base Directory Specification compliant binary path.
+.SH FILES
+.TP
+.I ~/.config/opencode/
+User configuration directory.
+.TP
+.I ~/.local/share/opencode/auth.json
+Stored authentication credentials.
+.SH TUI COMMANDS
+Inside the TUI, the following slash commands are available:
+.TP
+.B /connect
+Configure and authenticate an LLM provider.
+.TP
+.B /models
+Switch between available models.
+.SH SEE ALSO
+Full documentation at \fIhttps://opencode.ai/docs\fR
+.SH AUTHORS
+Developed by the Anomaly team. See \fIhttps://github.com/anomalyco/opencode\fR
+for contributors.
+.SH LICENSE
+MIT License.