Skip to content

Quickstart

This guide gets you productive with the AI-powered CLI in minutes. When you're done you'll know how to tackle common development tasks with SII CLI.

Before You Begin

Make sure you have:

  • A terminal or command prompt
  • A code project (or create a new one)
  • A SII account (recommended) or API key
ℹ️
No SII account yet? Visit https://www.opensii.ai/ to create one for free.

Step 1: Install SII CLI

1. Download Binary Files


Download SII CLI

Choose the version for your operating system and start using the AI-powered development assistant

🚀 Quick Install✨ Ready to Use🔄 Regular Updates
🍎

macOS ARM64

Apple Silicon (M1/M2/M3)

For Mac computers with Apple Silicon chips

📦 23.91 MB
🍎

macOS Intel

Intel x64 Processor

For Mac computers with Intel chips

📦 26.29 MB
🐧

Linux

x64 Architecture

For mainstream Linux distributions

📦 112 MB
🪟

Windows

x64 Architecture

For Windows 10/11

📦 125 MB

2. Download via Command Line

📝
Pick commands for your OS
Copy the commands directly—macOS, Linux, Windows, and NPM options are all listed so you don't have to search elsewhere.

Use curl to grab the full installer (macOS offers both ARM64 and Intel x64 builds):

bash
# macOS ARM64 (23.91 MB)
curl -L -o sii-cli-macos-arm64.zip https://dc-sh-public.tos-cn-shanghai.volces.com/sii-cli-macos-arm64-package.zip

# macOS Intel x64 (26.29 MB)
curl -L -o sii-cli-macos-x64.zip https://dc-sh-public.tos-cn-shanghai.volces.com/sii-cli-macos-x64-package.zip
💡
Recommended
Use the NPM install (Node.js 20+) to stay in a native environment and keep sii-cli up to date with a single command.

Step 2: Log In

SII CLI needs an account before it can run. When you start an interactive session with sii, you'll be prompted to sign in:

bash
sii
# You'll be asked to log in on first use

Or log in manually:

bash
sii login
# Follow the prompts to authenticate your account

You can authenticate with either:

  • SII account (subscription plan — recommended)
  • API key (prepaid credits)
ℹ️
After you're signed in, credentials are stored securely so you don't need to log in again.

Step 3: Choose Your Authentication Method

SII CLI supports three flexible authentication methods. Choose the one that best fits your needs:

Authentication Methods Comparison

Auth TypeDescriptionEnvironment VariablesAvailable ToolsBest For
SII Auth
(Default)
Use SII platform accountSII_USERNAME
SII_PASSWORD
All tools + SII-exclusive tools
(Cognitions, Deep Research, etc.)
Full feature experience
OpenAI AuthDirect OpenAI API KeySII_OPENAI_BASE_URL
SII_OPENAI_API_KEY
Basic toolsCost control, fast response
Hybrid Auth
(Recommended)
OpenAI generation + SII toolsSII_OPENAI_BASE_URL
SII_OPENAI_API_KEY
SII_USERNAME
SII_PASSWORD
All tools + SII-exclusive toolsBest of both worlds 🚀

1. SII Authentication (Full Features)

Use your SII platform account for complete functionality:

bash
export SII_USERNAME="your-username"
export SII_PASSWORD="your-password"

Advantages:

  • ✅ Access all SII-exclusive tools (Cognitions, Deep Research, etc.)
  • ✅ Full feature support
  • ✅ Conversation history auto-saved

2. OpenAI Authentication

Use OpenAI API Key directly, ideal for cost-sensitive scenarios:

bash
export SII_OPENAI_BASE_URL="https://api.openai.com/v1"
export SII_OPENAI_API_KEY="sk-..."

Advantages:

  • ✅ Lower API costs
  • ✅ Faster response times
  • ✅ Support for latest OpenAI models

Limitations:

  • ❌ Cannot use SII-exclusive tools
  • ❌ Conversation history not uploaded

Combine the strengths of both methods—enjoy OpenAI's low cost and speed while accessing SII's powerful tools:

bash
# Set both credentials
export SII_OPENAI_BASE_URL="https://api.openai.com/v1"
export SII_OPENAI_API_KEY="sk-..."
export SII_USERNAME="your-username"
export SII_PASSWORD="your-password"

Advantages:

  • ✅ OpenAI model's low cost and high speed
  • ✅ Full SII tool support
  • ✅ Conversation history auto-uploaded
💡
You can switch authentication methods anytime using the `/auth` command without restarting SII CLI.

Step 4: Start Your First Session

Open a terminal inside any project and launch SII CLI:

bash
cd /path/to/your/project
sii

You'll see the welcome screen with session info, recent chats, and release highlights.

SII CLI welcome screen

Type /help for available commands or /resume to pick up where you left off.


Step 5: Ask Your First Question

Start by learning about your codebase. Try one of these prompts:

> What does this project do?

SII CLI will scan your files and summarize them. Ask more specific questions too:

> What technologies does this project use?
> Where is the main entry point?
> Explain the folder structure.

You can also ask about the CLI itself:

> What can SII CLI do?
> How do slash commands work in SII CLI?
> Can SII CLI work with Docker?

Step 6: Make Your First Code Change

Let SII CLI perform a real edit:

> Add a hello world function to the main file.

SII CLI will:

  1. Find the right file
  2. Show the proposed changes
  3. Ask for your approval
  4. Apply the edit
💡
SII CLI always shows its plan and asks before making changes, so you're in control.

Step 7: Use Git with SII CLI

Git operations become conversational:

> Which files did I change?
> Commit my changes with a descriptive message.

Handle more advanced tasks too:

> Create a branch called feature/quickstart.
> Show the last 5 commits.
> Help me resolve merge conflicts.

Step 8: Fix Bugs or Add Features

SII CLI shines at debugging and implementation. Describe what you need:

> Add input validation to the user registration form.

Or squash an existing issue:

> There's a bug that lets users submit empty forms—fix it.

SII CLI will:

  • Locate relevant files
  • Understand the context
  • Implement the solution
  • Run any available tests

Step 9: Try Other Everyday Workflows

SII CLI supports many flows:

Refactor code

> Refactor the auth module to use async/await instead of callbacks.

Write tests

> Write unit tests for the calculator function.

Update docs

> Update the README with installation instructions.

Code review

> Review my changes and recommend improvements.

Performance tuning

> Analyze and optimize this slow query.

Generate code

> Create a REST API endpoint that returns the user list.

Essential Commands

Keep these commands handy:

CommandPurposeExample
siiLaunch interactive modesii
sii "task"Run a one-off tasksii "Fix the build error"
sii -p "query"Ask a one-shot questionsii -p "Explain this function"
sii -cContinue the most recent chatsii -c
sii -rResume a previous conversationsii -r
sii commitCreate a Git commitsii commit
/clearClear conversation history> /clear
/helpList available commands> /help
exit or Ctrl+CQuit SII CLI> exit

See the CLI Reference for the full list.


Pro Tips for New Users

💡 Tip 1: Be specific

Detailed prompts produce better results:

Nope: Fix this
Better: Fix the email validation in the user registration form

💡 Tip 2: Provide context

Include relevant details:

> In src/auth.js the login function doesn't handle errors properly.
> When the API returns 401 we should show "Incorrect username or password."

💡 Tip 3: Iterate

Don't expect perfection on the first try. Guide the assistant step by step:

> Add a button.
> Make the button blue.
> Add an icon to the button.

💡 Tip 4: Build on history

SII CLI remembers the conversation, so you can refer back to earlier steps:

> Create a user model.
> Add validation to that model.
> Write tests for it.

💡 Tip 5: Use slash commands

Slash commands speed up common actions:

  • /help — list commands
  • /clear — start a fresh chat
  • /resume — reopen a previous session
  • /config — view or edit configuration

Practical Examples

Example 1: Add a new feature

bash
# Launch SII CLI
sii

# Describe the requirement
> I need to add an "Edit" button to the user profile page.
> When clicked, show a modal with editable form fields.

# SII CLI implements the feature

# Test the change
> Run the dev server so I can verify it.

# Commit once you're happy
> Create a commit for this feature.

Example 2: Debug a problem

bash
sii

> When I try to log in the console shows:
> "TypeError: Cannot read property 'token' of undefined"
> Help me find and fix this issue.

# SII CLI diagnoses and proposes a fix

> The fix looks good—apply it.

> Run the tests to make sure nothing else broke.

Example 3: Refactor code

bash
sii

> The code in src/utils/api.js is messy.
> Please refactor it:
> 1. Split each API endpoint into its own function
> 2. Add error handling
> 3. Use async/await instead of promise chains
> 4. Add JSDoc comments

# SII CLI refactors the file step by step

> Looks great! Now update the related test files.

What's Next

Now that you know the basics, explore the advanced guides:

📖

Guides

Dive deeper into every SII CLI feature

了解更多 →
🚀

Advanced Features

Explore connected search, knowledge base, and more

了解更多 →
🎯

Best Practices

Learn how to get the most out of SII CLI

了解更多 →
🔌

CLI Reference

Browse every command and option

了解更多 →

Get Help

  • Inside SII CLI: type /help or ask "How do I ...?"
  • Docs: you're here—explore the other guides
  • Community: join our Discord for tips and support
  • Feedback: open an issue on GitHub
💡
Need assistance?
If you hit a snag, just ask inside SII CLI: "I'm seeing [issue]—what should I do?"

Released under the MIT License.