Skip to content

Repository files navigation

AIデスゲーム / AI Death Game

5人のAIによる心理戦を観測し、GMとして介入せよ

Watch 5 AI agents debate, betray, and eliminate each other — and intervene as Game Master

Play Demo Discord License: MIT Made by YAMI AI

AI Death Game


What is this? / 概要

A browser-based death game simulator powered by Gemini. 5 AI agents with unique personalities debate and vote to eliminate each other. You play as the Game Master (GM) — inject instructions into discussions, cast votes, or force-eliminate agents.

No server required. Your Gemini API key stays in your browser and is sent directly to Google's API.

Gemini搭載のブラウザ完結型デスゲームシミュレーター。個性豊かな5体のAIエージェントが議論し、投票で互いを追放する。あなたは GM(ゲームマスター) として介入できる。

サーバー不要。 APIキーはブラウザからGoogleのAPIへ直接送信されます。

How to Play / 遊び方


GM Intervention / GM介入

議論中にAIへ自由にテキスト指示を出せる。AIたちはその無茶振りに従いながら、命懸けの議論を続ける。

Inject any text instruction to the AIs mid-discussion. They'll obey your ridiculous demands while fighting for their lives.

GM Intervention / GM介入
GM介入 / GM Intervention
Moderator announces / 司会者のアナウンス
司会者のアナウンス / Moderator
Participant responds / 無茶振りに応えるAI
無茶振りに応える / Participant responds

Characters / 登場人物

14人+司会者のプールからランダムに5人が選出。トロフィー獲得で隠しキャラが解放される。

5 agents are randomly selected from a pool of 14 + hidden characters. Unlock secret characters by earning trophies.

Characters / 登場人物

Trophies / トロフィー

プレイ結果に応じて実績を獲得。レアトロフィーを集めて隠しキャラを解放しよう。

Earn achievements based on game outcomes. Collect rare trophies to unlock hidden characters.

Trophies / トロフィー


Quick Start / セットアップ

git clone https://github.com/yami-inc/ai-death-game.git
cd ai-death-game
npm install
npm run dev

Open http://localhost:3000, enter your Gemini API key (free), and start the game.

ブラウザで http://localhost:3000 を開き、Gemini APIキー(無料取得可)を入力してゲーム開始。


Game Rules / ゲームルール

EN JP
Participants / 参加者 5 agents (from a pool of 14 + hidden) 14人+隠しキャラからランダム5人選出
Flow / 進行 Discussion (2 rounds) → Vote → Elimination → Repeat 議論(2周)→ 投票 → 退場 → 繰り返し
Elimination / 退場 Most votes = eliminated. Ties = all eliminated 最多票で退場。同率は全員退場
End / 終了 Last 1 survivor (or 0 = annihilation) 生存者1名で終了(0名なら全滅エンド)
GM Powers / GM権限 Inject text, force-eliminate, add extra votes テキスト指示、強制退場、票の追加

API Key / APIキーについて

  • Your key is sent directly from the browser to Google's Gemini API
  • No server stores or proxies your key
  • Stored in sessionStorage — cleared when you close the tab
  • Gemini's free tier is sufficient for playing
  • APIキーはブラウザからGoogle APIへ直接送信されます
  • サーバーにキーが保存・中継されることは一切ありません
  • sessionStorageに一時保存 — タブを閉じると消去されます
  • Geminiの無料枠で十分プレイ可能です

Models / 使用モデル

Model / モデル
Primary / メイン gemini-3-flash-preview
Fallback / フォールバック gemini-2.5-flash

全機能で Primary を使用し、失敗時のみ Fallback に切り替わります。

モデルが廃止された場合は lib/byokClient.ts 先頭の定数を差し替えてください。

If a model is deprecated, update the constants at the top of lib/byokClient.ts.


Tech Stack / 技術スタック

Next.js 14 / React 18 / Zustand / Tailwind CSS / @google/genai SDK


Deploy / デプロイ

Vercel(推奨 / recommended)

Vercelにインポートするだけで動作します。サーバー処理なし — 静的サイト相当のコストで運用可能。

Import to Vercel and it just works. No server-side processing — runs at static-site cost.

Cloud Run

スタンドアロンのNext.js Dockerコンテナとしてビルド。Dockerfileの作成が必要です。

Build as a standalone Next.js Docker container. Dockerfile creation required.


License / ライセンス

Contributing / 貢献

CONTRIBUTING.md をご覧ください。フォーク歓迎です。

See CONTRIBUTING.md. Forking is encouraged.

新キャラ追加ガイド / Adding Characters: docs/adding-characters.md

About

AIデスゲームシミュレーター。AIエージェントが互いに議論し、排除し合う。あなたはゲームマスターとして介入できる。| Browser-based AI death game simulator powered by Gemini — 5 AI agents debate and eliminate each other, you intervene as Game Master

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Packages

Used by

Contributors

Languages