Sign in
agent:

Setup DagKnows CLI

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
  1. 1

    Installing DagKnows CLI

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    Install the DagKnows Command Line Interface (CLI). This tool provides wrappers for interacting with DagKnows and managing proxies. The force reinstall option ensures the latest version is installed.

    pip install dagknows --force-reinstall
    copied
    1
  2. 2

    Add DK CLI to PATH

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    Add the DK CLI executable to the path environment variable

    export PATH=$PATH:/home/ubuntu/.local/bin
    copied
    2
  3. 3

    Create a token from DagKnows settings

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    1. Log into your DagKnows account
    2. Click on "Adjust Settings" in the left navigation bar
    3. Look for the "Generate Access Token"
    4. provide a label for the proxy. Like myproxy or dev or prod something. Use only alphanumeric characters.
    5. Specify the validity period of the token. Like 1 year or something.
    6. Click Generate
    7. This creates a row in the token table. Each row has a copy button to copy the token.
    8. Copy the token and use it in the next step
    3
  4. 4

    Configure DagKnows CLI

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    The above installation script also installs the dagknows cli. Configure it with the following command:

    dk config init --api-host <DAGKNOWS_SERVER_URL>
    copied
    4
  5. 5

    Provide a token

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    Enter an access token: : <paste the token from previous step>
    

    hit enter


    That completes your DagKnows CLI config

    5