使い方ガイド
日本語
クイックスタート
# ファイルを送信:パスワード自動生成、リンクとパスワードを表示 $ ttl send secret.pdf No password provided. Generate one? [Y/n]: Generated password: aB3kL9mXq7Rt ·✧★◉ Thank goodness, secret.pdf is in orbit (1.2 MB, expires 2026-10-08 12:00) Keep your password somewhere safe. We can't see or recover it, and the file can't be opened without it. Password: aB3kL9mXq7Rt Manage key: k7Qm2vXpL9aR4tB8cD1eF6gH3jK5mN0oP2qS4uV7wYz (ttl status / ttl delete -k) SHA-256: 8fa66ff10c5b1474ea1ade90a21ee9bebf6fae1ea62f8ac9bc1e58759d518f70 Link with password: https://ttlspaceusercontent.com/aBcDeFgHiJ#p=aB3kL9mXq7Rt https://ttlspaceusercontent.com/aBcDeFgHiJ # ダウンロード:パスワードを対話的に入力 $ ttl get https://ttlspaceusercontent.com/aBcDeFgHiJ Enter password: ******** Password verified ◉★✧· Phew, secret.pdf landed safe and sound (1.2 MB) SHA-256: 8fa66ff10c5b1474ea1ade90a21ee9bebf6fae1ea62f8ac9bc1e58759d518f70 ✓ Same as the sender's fingerprint # パスワード付きリンクでダウンロード:入力は不要 $ ttl get 'https://ttlspaceusercontent.com/aBcDeFgHiJ#p=aB3kL9mXq7Rt' Password verified
CLIが暗号化、アップロード、ダウンロード、復号を処理します。サーバーがパスワードや平文データを見ることはありません。
インストール
Homebrew (macOS)
$ brew install --cask tweenietomatoes/ttl/ttl
winget (Windows)
$ winget install tweenietomatoes.ttl
Scoop (Windows)
$ scoop bucket add ttl https://github.com/tweenietomatoes/scoop-ttl $ scoop install ttl
Debian / Ubuntu (apt)
# パッケージ名は ttl-space、インストールされるコマンドは ttl $ sudo install -d -m 0755 /etc/apt/keyrings $ sudo curl -fsSL -o /etc/apt/keyrings/ttl-archive-keyring.gpg https://pkg.ttl.space/ttl-archive-keyring.gpg $ sudo curl -fsSL -o /etc/apt/sources.list.d/ttl.sources https://pkg.ttl.space/ttl.sources $ sudo apt update && sudo apt install ttl-space
Fedora / RHEL (dnf)
$ sudo curl -fsSL -o /etc/yum.repos.d/ttl.repo https://pkg.ttl.space/rpm/ttl.repo $ sudo dnf install ttl-space
openSUSE (zypper)
$ sudo zypper addrepo https://pkg.ttl.space/rpm/ttl.repo $ sudo zypper refresh && sudo zypper install ttl-space
Linux, macOS, BSD (curl)
$ curl -fsSL https://pkg.ttl.space/install.sh | sh
ビルド済みバイナリ
# お使いのプラットフォーム用をリリースページからダウンロード $ curl -Lo ttl.tar.gz \ https://github.com/tweenietomatoes/ttl/releases/download/v1.6.5/ttl_1.6.5_linux_amd64.tar.gz $ tar xzf ttl.tar.gz && sudo mv ttl /usr/local/bin/
Go install
$ go install github.com/tweenietomatoes/ttl/cmd/ttl@latest
ソースから
$ git clone https://github.com/tweenietomatoes/ttl $ cd ttl && go build -o ttl ./cmd/ttl/ $ sudo mv ttl /usr/local/bin/
確認
$ ttl version ttl 1.6.5
ファイルの送信
基本的な送信
# パスワード自動生成、デフォルト7日間のTTL $ ttl send report.xlsx
ターミナルでパスワードが指定されていない場合、CLIは次のように確認します:
No password provided. Generate one? [Y/n]:
Enterキーを押すか y と入力すると自動生成されます。
カスタムパスワード
$ ttl send -p mySecretPass -t 1h document.pdf
閲覧後に消滅
# ダウンロードされた時点で削除。中断したダウンロードは再開でき、使用済みにはなりません $ ttl send -b photo.jpg
カスタムTTL
$ ttl send -t 5m temp-credentials.txt # 5分で期限切れ $ ttl send -t 30m meeting-link.txt # 30分で期限切れ $ ttl send -t 6h backup.tar.gz # 6時間で期限切れ $ ttl send -t 1d daily-report.pdf # 1日で期限切れ $ ttl send -t 3d project-archive.zip # 3日で期限切れ $ ttl send -t 5d design-assets.zip # 5日で期限切れ $ ttl send report.xlsx # 7日で期限切れ(デフォルト)
大きなファイル
16 MiBまでのファイルは1回のリクエストで送信され、それより大きいファイルは再開可能な16 MiBのパートに分けて2つずつ送信されます。各リクエストはSHA-256ダイジェストで検証され、途中で失敗したものは再送信されます。送信済みのパートはそのまま残ります。Ctrl+Cで安全にキャンセルできます。
ファイルのダウンロード
対話的操作(ターミナル)
$ ttl get https://ttlspaceusercontent.com/aBcDeFgHiJ Enter password: ******** Password verified ◉★✧· Phew, document.pdf landed safe and sound (4.2 MB) SHA-256: 3b1f0c5e9a7d2468ace13579bdf02468ace13579bdf02468ace13579bdf02468 ✓ Same as the sender's fingerprint
パスワードは安全に読み取られ、ターミナルに表示されません。元のファイル名が復元されます。出力ディレクトリに同じ名前のファイルが既にある場合は、上書きせずに name (1).ext として保存されます。
トークンのみ
# 完全なURLの代わりに10文字のトークンだけで使用できます $ ttl get aBcDeFgHiJ
出力ディレクトリ
$ ttl get -o ~/Downloads aBcDeFgHiJ
デフォルトでは、ファイルは現在のディレクトリに保存されます。別のディレクトリを指定するには -o / --output を使用してください。
パスワードフラグを使用
$ ttl get -p mySecretPass https://ttlspaceusercontent.com/aBcDeFgHiJ
中断したダウンロード
中断したダウンロードは、最後に受信したバイトから再開されます。64 KiBのチャンクごとに個別に認証されるため、結果は中断のない転送と同一になります。閲覧後に消滅するファイル(1回限り)は、ダウンロードで全体を取得した時点で使用済みになります。途中で切れたダウンロードは停止した位置から再開され、ファイルは再試行のために残ります。
ブラウザ
リンクを直接開くことで、ブラウザでもファイルのダウンロードと復号ができます。Webインターフェースは同じファイル形式とアルゴリズム(Argon2id、XChaCha20-Poly1305)を使用し、パスワードの入力を求めます。ソフトウェアのインストールは不要です。
管理キー
すべてのアップロードには管理キーが付き、ttl send が1回だけ表示します(--json では manage_key)。サーバーが保存するのはそのハッシュのみです。どのプランでも、このキーでアップロードの状況を確認したり、早期に終了させたりできます。キーを持っている人は誰でもアップロードを削除できるため、パスワードと同様に大切に保管してください。
# 自分のアップロードの状態、ダウンロード数、有効期限 $ ttl status aBcDeFgHiJ -k k7Qm2vXpL9aR4tB8cD1eF6gH3jK5mN0oP2qS4uV7wYz Token: aBcDeFgHiJ State: active Size: 4.2 MB Created: 2026-10-01 12:00 Expires: 2026-10-08 12:00 Downloads: 1 (last 2026-10-02 09:12) # 早期に削除 $ ttl delete aBcDeFgHiJ -k k7Qm2vXpL9aR4tB8cD1eF6gH3jK5mN0oP2qS4uV7wYz Deleted: aBcDeFgHiJ
状態は active、expired、burned、deleted のいずれかです。
パスワードの取り扱い
パスワードは暗号化鍵のシードです。デバイスの外に送信されることはなく、サーバーに送られることもありません。指定方法は6通りあります:
1. 自動生成(送信時のみ)
$ ttl send notes.txt No password provided. Generate one? [Y/n]: y Generated password: aB3kL9mXq7Rt
[0-9A-Za-z] から暗号学的にランダムな12文字のパスワードを生成します。send 時のみ利用可能です(対話的に、または --json モードでは自動的に)。
2. 対話的プロンプト
$ ttl send notes.txt No password provided. Generate one? [Y/n]: n Enter password: ******** Confirm password: ******** $ ttl get https://ttlspaceusercontent.com/aBcDeFgHiJ Enter password: ********
パスワードは表示されず、シェル履歴にも保存されません。send 時はまず自動生成するかどうかを選択し、自分で入力した場合は確認のためにもう一度入力します。get 時は直接入力を求められます。
3. フラグ: -p / --password
$ ttl send -p mySecretPass file.zip $ ttl get --password mySecretPass https://ttlspaceusercontent.com/aBcDeFgHiJ
-p / --password は ps aux の出力に表示され、シェル履歴(~/.bash_history)に保存される場合があります。共有環境やスクリプトでの使用は避けてください。代わりに --password-stdin または --password-file を使用してください。4. 標準入力: --password-stdin
# echoからパイプ $ echo "mySecretPass" | ttl send --password-stdin backup.tar.gz # パスワードマネージャーからパイプ $ pass show ttl/key | ttl send --password-stdin data.zip # 環境変数からパイプ $ printenv MY_SECRET | ttl get --password-stdin https://ttlspaceusercontent.com/aBcDeFgHiJ # ヒアストリング $ ttl send --password-stdin report.pdf <<<"mySecretPass"
stdinの最初の行を読み取ります。スクリプト、CI/CDパイプライン、自動化に便利です。stdinがターミナルでなく、パスワードソースが指定されていない場合、CLIはエラーで終了します(ただし--json使用時はパスワードが自動生成されます)。
5. ファイル: --password-file
$ ttl send --password-file /run/secrets/key report.xlsx $ ttl get --password-file ~/.ttl-key https://ttlspaceusercontent.com/aBcDeFgHiJ
ファイルの最初の行を読み取ります(末尾の改行は除去)。Dockerシークレット(/run/secrets/)、Vaultエージェントファイルなどのパターンと互換性があります。
6. 自動検出ファイル: ttl.password
明示的なパスワードが指定されない場合、CLIはバイナリの隣にあるttl.passwordファイル、次に~/.ttl/passwordを検索します。最初の行がパスワードとして使用されます。
-p / --password、--password-stdin、--password-fileは組み合わせられません。自動検出されるttl.passwordファイルは、これらが何も指定されていない場合のみ確認されます。最小長: 8文字。オプションリファレンス
送信フラグ
| フラグ | 説明 | デフォルト |
|---|---|---|
-p, --password P | 暗号化パスワード | 対話的入力 |
--password-stdin | 標準入力からパスワードを読み取り | |
--password-file F | ファイルからパスワードを読み取り | |
-t, --ttl DUR | 有効期限 | 7d |
-b, --burn | 閲覧後に消滅(1回のみダウンロード可能) | オフ |
-u, --uploader-only | アカウントのみダウンロード可能:アカウントページ、またはそのAPIキー(Orbit、別名 --private) | オフ |
--timeout DUR | 転送タイムアウト | なし |
--server URL | サーバーURL | https://ttl.space |
-h3, --http3 | HTTP/3(QUIC)を試行、TCPにフォールバック | オフ |
--json | JSON出力をstdoutに書き出し(スクリプトとAIエージェント向け) | オフ |
取得フラグ
| フラグ | 説明 | デフォルト |
|---|---|---|
-p, --password P | 復号パスワード | 対話的入力 |
--password-stdin | 標準入力からパスワードを読み取り | |
--password-file F | ファイルからパスワードを読み取り | |
-o, --output DIR | 出力ディレクトリ | 現在のディレクトリ |
--timeout DUR | 転送タイムアウト | なし |
--server URL | トークンのみ指定時のサーバー | https://ttl.space |
-h3, --http3 | HTTP/3(QUIC)を試行、TCPにフォールバック | オフ |
--json | JSON出力をstdoutに書き出し(スクリプトとAIエージェント向け) | オフ |
TTL値
無料: 5m 10m 15m 30m 1h 2h 3h 6h 12h 24h 1d 2d 3d 4d 5d 6d 7d
Orbit追加: 14d 15d 28d 30d permanent
タイムアウト
デフォルト: なし。止まった転送は自動で再開し、先に進めない場合は中止します。制限を設けるには --timeout 30m や --timeout 2h を指定します。
使用例
スクリプト: バックアップとアップロード
#!/bin/bash tar czf /tmp/backup.tar.gz /data echo "$BACKUP_KEY" | ttl send --password-stdin -t 6h /tmp/backup.tar.gz rm /tmp/backup.tar.gz
リンクをクリップボードにコピー(macOS)
$ ttl send -p mypass123 file.pdf | pbcopy
リンクをクリップボードにコピー(Linux)
$ ttl send -p mypass123 file.pdf | xclip -sel clip
消滅: ワンタイムシークレット
$ echo "$DB_PASSWORD" | ttl send --password-stdin -b -t 5m credentials.env # リンクは1回だけ有効、5分で期限切れ
JSONモード(スクリプト & AIエージェント)
# 送信:JSONモードではパスワードが自動生成されます $ ttl --json send report.pdf {"ok":true,"link":"https://ttlspaceusercontent.com/xK9mQ2vLpA","token":"xK9mQ2vLpA","filename":"report.pdf","size":2097152,"ttl":"7d","expires_in":604800,"expires_at":1760011200,"burn":false,"uploader_only":false,"is_permanent":false,"manage_key":"k7Qm2vXpL9aR4tB8cD1eF6gH3jK5mN0oP2qS4uV7wYz","sha256":"8fa66ff10c5b1474ea1ade90a21ee9bebf6fae1ea62f8ac9bc1e58759d518f70","daily_bytes_remaining":6440353792,"password":"aB3kL9mXq7Rt","link_with_password":"https://ttlspaceusercontent.com/xK9mQ2vLpA#p=aB3kL9mXq7Rt"} # 取得 $ ttl --json get -p aB3kL9mXq7Rt xK9mQ2vLpA {"ok":true,"token":"xK9mQ2vLpA","filename":"report.pdf","size":2097152,"saved_to":"/home/user/report.pdf","sha256":"8fa66ff10c5b1474ea1ade90a21ee9bebf6fae1ea62f8ac9bc1e58759d518f70","same_as_sender":true} # 管理キーで状態を確認 $ ttl --json status xK9mQ2vLpA -k k7Qm2vXpL9aR4tB8cD1eF6gH3jK5mN0oP2qS4uV7wYz {"ok":true,"token":"xK9mQ2vLpA","status":{"state":"active","size_bytes":2097152,"created_at":1759406400,"expires_at":1760011200,"permanent":false,"burn":false,"note":false,"uploader_only":false,"downloads":1,"last_download_at":1759492800,"part_reads":0,"last_part_at":0}} # エラーはok:falseを返します {"ok":false,"error":"Link not found. The file may have expired, been downloaded already (burn after reading), or be private (uploader-only)"}
--json モードでは、すべての出力がstdoutに構造化JSONとして出力されます。送信時にパスワードが指定されていない場合、自動生成されてレスポンスに含まれます。終了コードは成功時0、エラー時1です。
Orbitプラン
Orbitはより大きなファイル(50 GB)、より長い保持期間(30日、サブスクリプションなら無期限)、アカウント限定のファイル(アカウントのみダウンロード可能)、ファイル管理(一覧と削除)を利用可能にします。詳しい比較: 機能。
APIキーは自動検出されます: TTL_API_KEY環境変数、バイナリの隣のttl.key、または~/.ttl/key。ttl activateでキーを保存するか、これらの場所に手動で書き込んでください。
# キーを有効化:入力は画面に表示されないため、シェル履歴に残りません $ ttl activate Enter Orbit API key: ******** Orbit plan activated. Key saved to /usr/local/bin/ttl.key # 非対話: ttl activate --key-stdin | ttl activate --key-file F # プランと使用状況を確認 $ ttl plan Plan: orbit Max file size: 50.0 GB Max TTL: 30 days (or permanent) Uploads per day: 1000000 Storage quota: 1024.0 GB Usage: Uploads today: 3 Active storage: 1.2 GB / 1024.0 GB # 延長TTLで送信 $ ttl send -t 30d large-backup.tar.gz # 永続ファイル(Orbitのみ): 有効期限なし、削除するか、サブスクリプションが終了するまで保持 $ ttl send -t permanent archive.tar.gz # 非公開ファイルを送信:あなたのアカウントのみダウンロード可能(Orbitのみ) $ ttl send -u payroll.xlsx # 最近のアップロードを一覧 $ ttl list xK9mQ2vLpA 4.2 MB 2026-03-16 10:30 → 2026-04-15 10:30 [active] https://ttlspaceusercontent.com/xK9mQ2vLpA rT7bNw3KpF 912.0 KB 2026-03-15 14:20 → 2026-03-17 14:20 [active (burn)] https://ttlspaceusercontent.com/rT7bNw3KpF # ファイルを早期削除(ttl list はすべてのページをたどります。-n 5 を付けると5件で止まります) $ ttl delete xK9mQ2vLpA Deleted: xK9mQ2vLpA # または、どのプランでもアップロードの管理キーで削除: ttl delete xK9mQ2vLpA -k KEY # 保存されたキーを削除 $ ttl deactivate Key file removed: /usr/local/bin/ttl.key
HTTP API
ttl send / ttl getまたは--jsonモードを使用してください。以下のエンドポイントはOrbitファイル管理用です。ファイル一覧(Orbit)
$ curl https://ttl.space/v1/files -H "X-API-Key: ttl_orbit_..." {"files":[{"token":"xK9mQ2vLpA","link":"https://ttlspaceusercontent.com/xK9mQ2vLpA","size_bytes":1048576,"created_at":1711800600,"expires_at":1714392600,"burn":false,"expired":false,"uploader_only":false,"is_permanent":false,"is_note":false,"perm_grace_until":0}],"has_more":false} # 次のページ:has_more が true の場合のみ。前のレスポンスの next_cursor を渡す $ curl "https://ttl.space/v1/files?cursor=1711800600123456" -H "X-API-Key: ttl_orbit_..."
このキーでアップロードされたファイルを新しい順に、1ページあたり20件返します。has_more が true の場合、レスポンスには next_cursor も含まれます。これを ?cursor= として渡すと次のページを取得できます。Orbitプランが必要です。
ファイル削除(Orbit)
$ curl -X DELETE https://ttl.space/v1/files/xK9mQ2vLpA -H "X-API-Key: ttl_orbit_..."
成功時に204 No Contentを返します。Orbitプランが必要です。ファイルはこのキーに属している必要があります。
エラーレスポンス
| ステータス | 意味 |
|---|---|
401 | 無効または期限切れのAPIキー |
403 | 機能にはOrbitプランが必要です |
404 | ファイルが見つからないか、このキーに属していません |
429 | リクエスト制限を超過 |
500 | サーバー内部エラー、後で再試行してください |
502 | ストレージが一時的に利用できません、後で再試行してください |
制限事項
| 制限 | 無料 | Orbit |
|---|---|---|
| 最大ファイルサイズ | 6 GB | 50 GB |
| 最大TTL | 7日 | 30日または無期限 |
| 1日あたりのアップロード | 4 | 無制限 |
| 1日あたりのアップロード容量(IPあたり) | 6 GB | 無制限 |
| 同時アップロード | IPあたり2 | APIキーあたり4 |
| ストレージ容量 | ✗ | 1 TB |
| ファイル一覧 | ✗ | ✓ |
| 早期削除 | ✓ | ✓ |
| 自分だけがダウンロードできるファイル | ✗ | ✓ |
| 最小パスワード長 | 8文字 | |
| IPあたりのリクエスト | 10秒あたり300 | |
| IPあたりの接続 | 同時100 | |
暗号化
ファイルはアップロード前にお使いのデバイス上で暗号化されます。サーバーは暗号文のみを保存し、ファイルを復号することはできません。
| コンポーネント | アルゴリズム / 値 |
|---|---|
| 鍵導出 | Argon2id (time=3, memory=64 MiB, parallelism=1) |
| 暗号方式 | XChaCha20-Poly1305 AEAD |
暗号文に対するいかなる変更も、復号の失敗を引き起こします。サーバーは暗号文を渡す前に、暗号化キーから導出された一方向トークンを使用して、ダウンロード者が正しいパスワードを知っていることを検証します。