UiPath Documentation
coding-agents
latest
false
UiPath for Coding Agents 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

打开代码

Set up OpenCode with the uip CLI and UiPath skills, then install, check, and remove the skills.

OpenCode logoAn open-source coding agent for the terminal and desktop.

Quick start​

  1. Install OpenCode. For other install methods, see the OpenCode docs.

    npm install -g opencode-ai
    npm install -g opencode-ai
    
  2. Install the uip CLI and sign in. For options, see Install and set up.

    irm https://download.uipath.com/uipath-cli/install.ps1 | iex
    irm https://download.uipath.com/uipath-cli/install.ps1 | iex
    

    Open a new terminal, then sign in:

    uip login
    uip login
    
  3. Install the UiPath skills. The installer adds them for agents it detects. If you installed OpenCode afterwards, run:

    uip skills install --agent opencode
    uip skills install --agent opencode
    
  4. Start OpenCode in your project folder.

    opencode
    opencode
    
  5. Check that the skills loaded. Ask: "What UiPath skills do you have installed?" If OpenCode lists none, restart it.

  6. Try a prompt. For example:

    Create a sample input.csv with five rows. Then create a cross-platform UiPath RPA project that reads each row of input.csv, counts the rows, and writes the total to output.txt. Then run it.

Install scope and paths​

The install is global by default. For one project, add --local:

uip skills install --agent opencode --local
uip skills install --agent opencode --local

The global and local folder names differ.

范围路径
全局~/.config/opencode/skills/<skill>/
Local (--local)<project>/.opencode/skills/<skill>/

Project context file​

AGENTS.md, or CLAUDE.md when the project has no AGENTS.md. See Give your agent project context.

Remove the skills​

uip skills uninstall --agent opencode
uip skills uninstall --agent opencode

Add --local for a project-scoped install.

  • Quick start​
  • Install scope and paths​
  • Project context file​
  • Remove the skills​

此页面有帮助吗?

连接

需要帮助? 支持(opens in new window)

想要了解详细内容? UiPath Academy(opens in new window)

有问题? UiPath 论坛(opens in new window)

保持更新