# Connecting to Stardog Cloud programmatically

**URL:** https://community.stardog.com/t/connecting-to-stardog-cloud-programmatically/4157
**Category:** Support
**Created:** [December 17, 2022, 9:19am UTC](https://community.stardog.com/t/connecting-to-stardog-cloud-programmatically/4157 "2022-12-17T09:19:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![andyTheArtchitect](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/andytheartchitect/32/979_2.png) [@andyTheArtchitect](https://community.stardog.com/u/andyTheArtchitect)
#### Post date: [December 17, 2022, 9:19am UTC](https://community.stardog.com/t/connecting-to-stardog-cloud-programmatically/4157/1 "2022-12-17T09:19:48Z")

</div>

I used to use Stardog Studio on my localhost, and connect to it using a custom-developed API. My connection string looked like this (with default credentials):  
[http://admin:admin@localhost:5820/myDB/](http://admin:admin@localhost:5820/myDB/)

With migration to Stardog Cloud, I am not managing to connect - getting 401 however I try. Also, I am not managing to disable SSO in order to try connecting with a password.  
Please advise.  
In the meantime, on my localhost I can no longer visualize the bubbles (I read that it moved to Explorer). I get a CONSTRUCT query instead of graphics. Real pity, because I was positioning Knowledge Graphs at my client, and of course this sudden change had to happen during a demo ☹ Would have appreciated heads-up (and looks like no KG for this client of mine in the meantime).

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [January 13, 2023, 5:12am UTC](https://community.stardog.com/t/connecting-to-stardog-cloud-programmatically/4157/2 "2023-01-13T05:12:19Z")

</div>



---

<div class="post-metadata">

### Author: ![PaulPlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/paulplace/32/1447_2.png) [@PaulPlace](https://community.stardog.com/u/PaulPlace)
#### Post date: [January 13, 2023, 12:26pm UTC](https://community.stardog.com/t/connecting-to-stardog-cloud-programmatically/4157/3 "2023-01-13T12:26:52Z")

</div>

Hello Andreas,

I apologize for the delay in responding to your question.

After you log in to your Stardog Cloud account at [https://cloud.stardog.com](https://cloud.stardog.com), you can create a connection to your local Stardog server instance.

Click the New Connection button:

 ![Screenshot 2023-01-13 at 5.59.12 AM](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/c/c12d2c54f05d4a1d27447aaa1db15e89dd53163c.png)

Then enter the details for your new connection. For example, I created a connection to a Stardog server running on my local system with the following:

 ![Screenshot 2023-01-13 at 6.20.14 AM](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/e5819e0de231c999ee159a09d7f6df951fced0d4.png)

After saving your connection, click on the connection in your list of connections, and you will navigate to a connection details page where you can launch the Studio application.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [February 10, 2023, 7:43am UTC](https://community.stardog.com/t/connecting-to-stardog-cloud-programmatically/4157/4 "2023-02-10T07:43:39Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)
#### Post date: [March 10, 2023, 7:26pm UTC](https://community.stardog.com/t/connecting-to-stardog-cloud-programmatically/4157/5 "2023-03-10T19:26:44Z")

</div>



---

<div class="post-metadata">

### Author: ![PaulPlace](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/paulplace/32/1447_2.png) [@PaulPlace](https://community.stardog.com/u/PaulPlace)
#### Post date: [March 17, 2023, 2:55pm UTC](https://community.stardog.com/t/connecting-to-stardog-cloud-programmatically/4157/6 "2023-03-17T14:55:42Z")

</div>


