The most interesting thing about SakanaAI/fugu for everyday developers is not only that it is a multi-agent model. It is that it already provides a direct entry point for using it with Codex.
If you are searching for:
|
|
This guide is written as an installation and first-use tutorial.
Official links:
- GitHub repository: SakanaAI/fugu
- Product page: Sakana Fugu
What Fugu Is Good For First
Before installing it, be clear about one thing: Fugu is not necessarily the best choice for every task.
It is better suited to complex, multi-step development tasks that benefit from model coordination and verification, such as:
- Reading a codebase and summarizing its structure;
- Locating bugs;
- Modifying code and continuing to run tests;
- Reviewing code;
- Analyzing complicated errors;
- Designing engineering plans;
- Handling tasks that require long-chain reasoning;
- Paper reproduction, research analysis, security analysis, and other hard tasks.
If you only ask something simple like “How do I read a file in Python?”, a normal model is enough. Fugu is more useful when you want the AI to think through more steps and check more rounds.
Check Before Installation
According to the SakanaAI/fugu README, the official one-line installer supports:
- Ubuntu;
- macOS.
Windows users, or users whose one-line installation does not finish, should follow the official manual instructions.
Before installing, check a few things:
- Your environment can access
https://sakana.ai/; curlis available in your terminal;- You know whether you are on Ubuntu, macOS, or Windows;
- You already have a working Codex environment;
- If you are behind a company proxy or firewall, confirm that the installer can be downloaded.
If you are in the EU/EEA, also note the availability limitation mentioned on the official page: Fugu is currently unavailable in the EU/EEA while Sakana works on GDPR and EU-specific compliance.
Install Fugu With One Command
The installation command shown in the official README is:
|
|
This command downloads the installer from Sakana’s official address and passes it to bash.
If you prefer a more cautious approach, you can first print the script content without executing it:
|
|
After confirming the source and content, run the official installation command.
Commands like curl | bash are convenient, but they execute a remote script. Copy them only from the official README or official documentation, not from random comments, screenshots, or reposts.
Start codex-fugu
After installation, the official README shows this launch command:
|
|
If the command starts normally, Fugu has been connected to your Codex workflow.
Start with a small task rather than a huge repository problem. For example:
|
|
Or:
|
|
These tasks are specific enough, but not too heavy. They are good for observing Fugu’s response style, speed, and stability.
Suggested First Tests
When you use codex-fugu for the first time, try this order:
- Ask a repository structure question;
- Ask it to inspect a specific file;
- Ask it to analyze a small bug;
- Then try a cross-file task.
For example:
|
|
Then:
|
|
Then go one step further:
|
|
This gradual approach is safer. You can first judge whether it understands the project before handing it larger tasks.
Codex Tasks Suitable for Fugu
Fugu packages multi-agent coordination as a model/API, so it is more suitable for tasks that require several rounds of reasoning.
1. Code Review
You can ask:
|
|
This kind of task requires reading multiple files, understanding context, and judging risk. It is a better fit for multi-agent coordination than simple Q&A.
2. Bug Diagnosis
You can ask:
|
|
Bug diagnosis usually requires step-by-step investigation. A system like Fugu is suitable for chaining analysis, verification, and repair suggestions.
3. Cross-File Refactoring
You can ask:
|
|
Cross-file changes easily miss boundaries. When using Fugu, ask it to explain the impact area before editing.
4. Documentation and Tutorial Writing
You can ask:
|
|
This type of task requires reading materials, extracting structure, and writing executable steps, which also fits Fugu well.
5. Hard Analysis Tasks
For research, paper reproduction, security analysis, or long engineering investigations, consider Fugu Ultra.
For day-to-day development, you do not need to start with Ultra. Test regular Fugu first for cost, speed, and quality.
How to Choose Fugu or Fugu Ultra
Sakana’s official page mentions two models:
FuguFugu Ultra
You can think of them this way:
| Model | Suitable scenarios | Orientation |
|---|---|---|
| Fugu | Daily coding, code review, chatbots, ordinary complex tasks | Balance performance and latency |
| Fugu Ultra | Hard reasoning, research, competitions, security analysis, long-chain tasks | Prioritize output quality |
Practical advice:
- Use
Fugufirst for normal development tasks; - Use
Fugufirst even for cross-file tasks; - If the result is not deep enough, consider
Fugu Ultra; - For high-cost or high-risk tasks, do not rely only on the model answer. Use tests and human review.
What About Windows?
The official README says the one-line installation supports Ubuntu and macOS. Windows users, or users whose installation does not complete, should follow the official manual guide.
On Windows, consider:
- Using WSL Ubuntu;
- Installing on a macOS or Linux machine;
- Checking Sakana’s official console or documentation for Windows manual steps;
- Avoiding direct use of Linux/macOS shell commands in PowerShell.
In particular:
|
|
This is a bash command, not a native PowerShell command. If Windows does not have a bash environment, it will likely fail.
Common Issues
1. The curl command fails
Check network access first:
|
|
If it cannot connect, the issue may be network access, proxy, certificate, or firewall configuration.
2. bash is not found
This usually means the current environment does not have bash, common in Windows PowerShell.
Possible solutions:
- Switch to WSL;
- Use macOS or Linux;
- Follow the official manual installation guide.
3. codex-fugu is not found
Possible causes:
- Installation did not succeed;
- The command was not added to
PATH; - The current terminal has not reloaded environment variables;
- The installation script only affected the current shell.
Try reopening the terminal, then run:
|
|
If it still fails, return to the official installation guide and check path configuration.
4. It is slower than a normal model
That is not necessarily abnormal.
Fugu coordinates multiple models behind the scenes, so complex tasks may involve more internal steps. It is useful when you trade speed for stronger complex-task handling, but it is not ideal for every lightweight question.
5. Can I upload company code?
Be careful.
The official page mentions that Fugu supports excluding specific providers or models based on data, privacy, and compliance requirements. Still, if you handle company code, customer data, security vulnerabilities, or patent materials, confirm your organization’s data policy and model-pool configuration first.
Usage Tips
For your first Fugu session, do not start with the largest and hardest task.
A safer flow is:
- Test with a small repository;
- Ask it to read the structure;
- Give it a small bug;
- Try a cross-file change;
- Then use it for complex engineering tasks.
Make prompts specific, for example:
|
|
These constraints make the result easier to control.
Summary
If you only want to understand what Fugu is, think of it as “a multi-agent system packaged as a model/API”.
But the part worth trying is its Codex entry point:
|
|
For everyday developers, Fugu is best used for code review, bug diagnosis, cross-file refactoring, complex documentation, and long-chain engineering tasks. Start with small tasks, then decide whether it belongs in your daily Codex workflow.